/*
Theme Name:  You Can Tours Japan
Theme URI: 
Author: Nemes Paul
Author URI: https://upwork.com/freelancers/~0123a9f5d2aa810a42
Description: A custom WordPress theme built specifically for You Can Tours Japan, optimized for performance, SEO, and a clean travel-focused design.
Tags: custom-theme, travel, responsive
Version: 1.0
Text Domain: youcantoursjapan
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* footer copyright alignment */
.site-footer.footer-align-left .container {
    text-align: left !important;
}

.site-footer.footer-align-center .container {
    text-align: center !important;
}

.site-footer.footer-align-right .container {
    text-align: right !important;
}

/* Base flex container */
.site-footer .footer-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Standard alignments */
.site-footer.footer-align-left .footer-flex {
    justify-content: flex-start;
}

.site-footer.footer-align-center .footer-flex {
    justify-content: center;
}

.site-footer.footer-align-right .footer-flex {
    justify-content: flex-end;
}

/* Advanced alignments */
.site-footer.footer-align-space-between .footer-flex {
    justify-content: space-between;
}

.site-footer.footer-align-space-around .footer-flex {
    justify-content: space-around;
}

.site-footer.footer-align-space-evenly .footer-flex {
    justify-content: space-evenly;
}

/* =======================
   Main Navigation Menu
   ======================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1000;
    background: transparent;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    max-width: var(--logo-width, 180px);
    height: auto;
    display: block;
}

/* Menu items */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 10px 5px;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu>li>a {
    position: relative;
}

/* Dropdown arrow icon styling */
.nav-menu .fa-chevron-down {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* Simple Dropdown Positioning (Hidden for now) */
.menu-item-has-children {
    position: relative;
}

/* Hidden state */
.sub-menu {
    position: absolute;
    top: 100%;
    padding-top: 10px;
    background-clip: padding-box;
    left: 0;
    min-width: 100%;
    max-width: 200px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    list-style: none;
    z-index: 999;
    /* Animation: invisible and shifted up slightly */
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

/* Visible state */
.menu-item-has-children:hover>.sub-menu,
.menu-item-has-children:focus-within>.sub-menu {
    opacity: 1;
    transform: translateY(10px);
    visibility: visible;
    pointer-events: auto;
}

/* Bridge the gap so hover stays connected to dropdown */
.menu-item-has-children>a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

/* Dropdown items */
.sub-menu li {
    margin: 0;
}

.menu-item-has-children:hover>.sub-menu {
    display: block;
}

.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: #333333;
    font-size: 18px;
    text-transform: none !important;
    /* Ignore nav text transform setting */
    letter-spacing: 0 !important;
    font-weight: 400 !important;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.sub-menu a:hover {
    background: #f5f5f5;
    color: var(--accent-color) !important;
    padding-left: 26px;
    /* Subtle indent on hover */
}


/* Thin accent line on left of active dropdown item */
.sub-menu .current-menu-item>a {
    color: var(--accent-color) !important;
    border-left: 3px solid var(--accent-color);
    padding-left: 17px;
}

/* Chevron rotation when open */
.nav-menu .menu-item-has-children:hover>a .fa-chevron-down {
    transform: rotate(180deg);
}

.nav-menu .menu-item-has-children>a .fa-chevron-down {
    transition: transform 0.2s ease;
    display: inline-block;
}

/* === Nested sub-menus (2nd level) === */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    /* Opens to the right */
    margin-top: -8px;
}

.sub-menu .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}



/* Layout structural fixes */
.site-main {
    padding-top: 100px;
    /* Offset for absolute/fixed header */
    min-height: calc(100vh - 100px - 60px);
    /* Height minus header and footer */
}

/* Theme Option Classes */
.site-header.header-transparent {
    position: absolute;
    background: transparent;
}

.site-header.header-solid {
    position: relative;
    background: #ffffff;
    /* Default solid background */
}

/* If header is solid (relative), remove the padding-top from main */
.header-solid+.site-main {
    padding-top: 0;
}

.site-header.header-sticky {
    position: fixed;
    transition: all 0.3s ease;
}

/* Scrolled state for sticky header (see script.js below) */
.header-scrolled .site-header.header-sticky {
    background: #ffffff;
    /* Add solid background on scroll */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    /* Shrinking effect */
}


/* ================================
   Mobile Navigation (max 768px)
   ================================ */

/* Base Toggle Setup */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: #ffffff; /* This will use your link color setting if you link it later */
    border-radius: 2px;
    transition: 0.3s ease;
    transform-origin: center;
}

/* TYPE 1: Equal Lines */
.hamburger-type-1 span { width: 26px; }
.hamburger-type-1.menu-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-type-1.menu-open span:nth-child(2) { opacity: 0; }
.hamburger-type-1.menu-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* TYPE 2: Staggered */
.hamburger-type-2 span:nth-child(1) { width: 26px; }
.hamburger-type-2 span:nth-child(2) { width: 18px; align-self: flex-start; }
.hamburger-type-2 span:nth-child(3) { width: 22px; }
.hamburger-type-2.menu-open span:nth-child(1) { width: 26px; transform: translateY(7px) rotate(45deg); }
.hamburger-type-2.menu-open span:nth-child(3) { width: 26px; transform: translateY(-7px) rotate(-45deg); }

/* TYPE 3: With Label */
.hamburger-type-3 { flex-direction: row; gap: 8px; }
.hamburger-type-3 .hamburger-lines { display: flex; flex-direction: column; gap: 5px; }
.hamburger-type-3 .hamburger-lines span { width: 22px; }
.hamburger-type-3 .hamburger-label { position: relative; height: 18px; overflow: hidden; font-size: 11px; font-weight: 700; color: #fff; }
.hamburger-type-3 .label-close { position: absolute; top: 0; left: 0; transform: translateY(100%); opacity: 0; transition: 0.3s; }
.hamburger-type-3.menu-open .label-menu { transform: translateY(-100%); opacity: 0; }
.hamburger-type-3.menu-open .label-close { transform: translateY(0); opacity: 1; }

/* TYPE 4: Circle */
.hamburger-type-4 { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.hamburger-type-4 span:nth-child(1) { width: 20px; }
.hamburger-type-4 span:nth-child(2) { width: 14px; margin-left: 3px; align-self: flex-start; }
.hamburger-type-4 span:nth-child(3) { width: 18px; }


/* ================== REVIEWS CAROUSEL ================== */
.reviews-carousel-section {
    padding: 120px 0;
    background: #000;
    overflow: hidden;
}
.reviews-carousel-section h2.reviews-title {
    color: var(--accent-gold, #eb6609);
    font-size: 2.5rem;
    text-transform: uppercase;
}
.reviews-carousel-outer {
    width: 100%;
    cursor: grab;
}
.reviews-carousel-inner {
    display: flex;
    gap: 40px;
    padding: 40px 5%;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.review-card {
    height: 450px;
    background: #1c1c1c00;
    padding: 60px;
    border: 1px solid #111;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s ease;
    min-width: 400px;
    max-width: 850px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.review-card:hover {
    border-color: var(--accent-gold, #eb6609);
    background: #2e2e2e;
    transform: translateY(-10px);
}
.review-card-content {
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    color: #ccc;
}
.review-card-meta {
    margin-top: 40px;
}
.review-user {
    font-weight: 700;
    display: block;
    color: #fff;
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.review-social {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-gold, #eb6609);
    margin-bottom: 5px;
}
.review-social a {
    color: inherit;
    text-decoration: none;
}
.review-stars {
    color: var(--accent-gold, #eb6609);
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
}
.review-platform {
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.reviews-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}
.reviews-nav .nav-btn {
    width: 60px;
    height: 60px;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.05);
}
.reviews-nav .nav-btn:hover {
    background: var(--accent-gold, #eb6609);
    border-color: var(--accent-gold, #eb6609);
    color: #000;
}
@media (max-width: 1024px) {
    .review-card {
        min-width: 300px;
        padding: 40px;
        height: auto;
    }
}

@media (max-width: 768px) {

.menu-toggle { display: flex; }

    /* NAV - always flex, hidden via max-height so it can animate */
    .nav-menu {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        background: #000000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    /* Hamburger opens nav */
    .nav-menu.active {
        max-height: 600px;
        /* must be bigger than tallest possible menu */
        padding: 20px 0;
    }

    .nav-menu>li>a {
        padding: 14px 24px;
        font-size: 16px;
        color: #f5f5f5 !important;
        border-bottom: 1px solid #2e2e2e;
        display: block;
    }

    .nav-menu>li:last-child>a {
        border-bottom: none;
    }

    /* SUB-MENU - always block, hidden via max-height so it can animate AND collapse */
    .sub-menu {
        position: static !important;
        display: block !important;
        background: #111111;
        box-shadow: none !important;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease !important;
        /* Reset all desktop values */
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: none;
    }

    /* JS adds .open to toggle submenu */
    .menu-item-has-children.open>.sub-menu {
        max-height: 400px;
        pointer-events: auto;
    }

    /* Neutralize desktop :hover on touch devices */
    .menu-item-has-children:hover>.sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    .sub-menu a {
        padding: 12px 36px;
        font-size: 16px;
        border-bottom: 1px solid #2e2e2e;
        color: #ffffff;
    }

    .menu-item-has-children.open>a .fa-chevron-down {
        transform: rotate(180deg);
    }
}