/*
Theme Name: Taiwan Luxury
Description: Giao diện Bespoke Taiwan - Bảng màu Alishan Jade
Version: 1.0.0
*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* ==============================================================
   TAIWAN BESPOKE TOURS - LUXURY CSS (ALISHAN JADE THEME)
============================================================== */

/* --- THIẾT LẬP BIẾN (Bảng màu Alishan Jade) --- */
:root {
    --tw-color-bg: #FDFBF7;       /* Trắng kem/Ngọc trai */
    --tw-color-text: #2C3531;     /* Xám rêu đậm (Thay cho đen) */
    --tw-color-accent: #C5A880;   /* Vàng Champagne */
    --tw-color-dark: #1E3F33;     /* Xanh ngọc bích thẫm (Quyền lực) */
    
    --tw-font-heading: 'Playfair Display', serif;
    --tw-font-body: 'Montserrat', sans-serif;
}

/* Lệnh ma thuật ép độ sắc nét cho toàn bộ chữ trên web */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- BASE STYLES --- */
#tw-bespoke-main {
    background-color: var(--tw-color-bg);
    color: var(--tw-color-text);
    font-family: var(--tw-font-body);
    -webkit-font-smoothing: antialiased;
}

.tw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tw-section {
    padding: 80px 0;
}

/* --- COMPONENT: TYPOGRAPHY & BUTTONS --- */
.tw-badge {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tw-color-accent);
    margin-bottom: 20px;
}

.tw-section-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    color: var(--tw-color-accent);
    margin-bottom: 20px;
}

.tw-section-title {
    font-family: var(--tw-font-heading);
    font-size: clamp(32px, 5vw, 55px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 40px;
    color: var(--tw-color-dark); /* Tiêu đề đổi sang Xanh ngọc bích */
}

.tw-divider {
    width: 1px;
    height: 50px;
    background: var(--tw-color-accent);
    margin: 0 auto 30px;
}

.tw-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--tw-color-accent);
    color: var(--tw-color-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tw-btn:hover {
    background-color: var(--tw-color-accent);
    color: #fff;
}

.tw-btn--solid {
    background-color: var(--tw-color-accent);
    color: #fff;
}

.tw-btn--solid:hover {
    background-color: transparent;
    color: var(--tw-color-accent);
}

.tw-link {
    display: inline-block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--tw-color-text);
    text-decoration: none;
    border-bottom: 1px solid var(--tw-color-accent);
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.tw-link:hover {
    color: var(--tw-color-accent);
}

/* --- 1. HERO BANNER (OLD SECTION) --- */
.tw-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.tw-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1571474004502-c11ed183dc18?auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s linear infinite alternate;
}

.tw-hero__overlay {
    position: absolute;
    inset: 0;
    /* Phủ lớp Xanh ngọc bích mờ trên ảnh */
    background: linear-gradient(180deg, rgba(30,63,51,0.4) 0%, rgba(30,63,51,0.8) 100%);
}

.tw-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
}

.tw-hero__title {
    font-family: var(--tw-font-heading);
    font-size: clamp(45px, 7vw, 90px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
    color: #fff;
}

.tw-hero__desc {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* --- 2. PHILOSOPHY --- */
.tw-philosophy {
    text-align: center;
    background-color: var(--tw-color-bg);
}

.tw-philosophy__inner {
    max-width: 800px;
    margin: 0 auto;
}

.tw-philosophy__text {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.8;
    color: var(--tw-color-text);
}

/* --- 3. EXPERIENCES (Luxury Grid) --- */
.tw-exp-card {
    display: flex;
    align-items: center;
    gap: 8%;
    margin-bottom: 80px;
}

.tw-exp-card--reverse {
    flex-direction: row-reverse;
}

.tw-exp-card__image {
    flex: 1.2;
    overflow: hidden;
}

.tw-exp-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tw-exp-card:hover .tw-exp-card__image img {
    transform: scale(1.04);
}

.tw-exp-card__content {
    flex: 1;
    padding: 40px 0;
}

.tw-exp-card__number {
    display: block;
    font-family: var(--tw-font-heading);
    font-size: 60px;
    color: var(--tw-color-accent);
    opacity: 0.4;
    line-height: 1;
    margin-bottom: 20px;
}

.tw-exp-card__title {
    font-family: var(--tw-font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--tw-color-dark);
}

.tw-exp-card__desc {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tw-color-text);
    margin-bottom: 40px;
}

/* --- 4. CTA --- */
.tw-cta {
    background-color: var(--tw-color-dark); /* Đổi sang nền Xanh Ngọc Bích thẫm */
    color: #fff;
    text-align: center;
    padding: 120px 20px;
}

.tw-cta__title {
    font-family: var(--tw-font-heading);
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--tw-color-accent); /* Chữ Vàng Champagne */
}

.tw-cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* --- 5. CUSTOM FOOTER (Đã chuyển sang Light Mode theo Alishan Jade) --- */
.tw-footer {
    background-color: var(--tw-color-bg); /* Nền trắng kem */
    color: var(--tw-color-text);
    padding: 100px 20px;
    font-family: var(--tw-font-body);
}

.tw-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 80px;
    border-top: 1px solid rgba(30, 63, 51, 0.1); /* Viền mỏng xanh rêu */
    padding-top: 80px;
}

.tw-footer__brand {
    flex: 1;
    max-width: 480px;
    display: flex;
    gap: 30px; 
}

.tw-footer__logo {
    font-family: var(--tw-font-heading);
    font-size: 60px;
    line-height: 1;
    color: var(--tw-color-dark); /* Logo Xanh ngọc bích */
}

.tw-footer__newsletter {
    flex: 1;
}

.tw-footer__heading {
    font-family: var(--tw-font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--tw-color-dark) !important;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.tw-footer__desc {
    font-size: 14px;
    font-weight: 400; 
    color: var(--tw-color-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.tw-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.tw-form input {
    width: 100%;
    background-color: transparent; 
    border: none;
    border-bottom: 1px solid rgba(30,63,51,0.3); /* Viền dưới sang trọng */
    padding: 12px 0;
    color: var(--tw-color-text);
    font-family: var(--tw-font-body);
    font-size: 13px;
    border-radius: 0;
}

.tw-form input::placeholder {
    color: #888888;
}

.tw-form input:focus {
    outline: none;
    border-bottom-color: var(--tw-color-accent);
}

.tw-form-disclaimer {
    font-size: 11px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 25px;
}

.tw-form-disclaimer a {
    color: var(--tw-color-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tw-btn-subscribe {
    background-color: var(--tw-color-dark);
    color: #ffffff;
    border: 1px solid var(--tw-color-dark);
    padding: 12px 35px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.tw-btn-subscribe:hover {
    background-color: var(--tw-color-accent);
    border-color: var(--tw-color-accent);
}

.tw-footer__links {
    flex: 1.5;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tw-footer__col-title {
    font-size: 12px; 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 25px;
    color: var(--tw-color-dark);
}

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

.tw-footer__col ul li {
    margin-bottom: 22px;
}

.tw-footer__col ul li a {
    color: var(--tw-color-text);
    font-size: 14px;
    font-weight: 400; 
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.tw-footer__col ul li a:hover {
    color: var(--tw-color-accent);
}

/* --- 6. HERO SLIDER (NEW LUXURY STYLE) --- */
.tw-hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-color: #000;
    overflow: hidden;
    color: #fff;
}

.tw-swiper-container {
    width: 100%;
    height: 100%;
}

.tw-slide-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: scale(1);
    transition: transform 8s ease-out;
}

.swiper-slide-active .tw-slide-bg {
    transform: scale(1.08);
}

.tw-slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Phủ nhẹ ánh ngọc bích lên slider */
    background: linear-gradient(to right, rgba(30,63,51,0.8) 0%, rgba(30,63,51,0.4) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.tw-slide-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tw-slide-text {
    max-width: 650px;
    padding-left: 5%;
}

.tw-slide-subtitle {
    font-family: var(--tw-font-body);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: block;
    color: var(--tw-color-accent); /* Đổi sang Vàng Champagne cho nổi bật */
}

.tw-slide-title {
    font-family: var(--tw-font-heading);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 40px;
    color: #ffffff;
}

.tw-btn-outline {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid var(--tw-color-accent);
    color: var(--tw-color-accent);
    text-decoration: none;
    font-family: var(--tw-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.tw-btn-outline:hover {
    background-color: var(--tw-color-accent);
    color: #ffffff;
}

.tw-slide-image {
    width: 28%;
    max-width: 380px;
    height: 55%;
    margin-right: 2%;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s ease 0.6s;
}

.swiper-slide-active .tw-slide-image {
    opacity: 1;
    transform: translateY(0);
}

.tw-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- SWIPER NAVIGATION --- */
.tw-slider-nav {
    position: absolute;
    bottom: 15%;
    right: 5%;
    z-index: 999 !important;
    display: flex;
    gap: 15px;
}

.tw-btn-prev, .tw-btn-next {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    margin: 0 !important;
    width: 54px !important; 
    height: 54px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    background: transparent !important;
    transition: all 0.4s ease !important;
    backdrop-filter: blur(4px);
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tw-btn-prev::after, .tw-btn-next::after {
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 300 !important;
}

.tw-btn-prev:hover, .tw-btn-next:hover {
    background-color: var(--tw-color-accent) !important;
    border-color: var(--tw-color-accent) !important;
}

.tw-btn-prev:hover::after, .tw-btn-next:hover::after {
    color: #ffffff !important;
}

/* --- BOTTOM BAR --- */
.tw-hero-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12%;
    background-color: var(--tw-color-dark); /* Xanh ngọc bích */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.tw-hero-bottom-bar p {
    font-family: var(--tw-font-heading);
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    color: var(--tw-color-accent); /* Chữ Vàng Champagne */
    max-width: 900px;
    line-height: 1.4;
    margin: 0;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 992px) {
    /* Trải nghiệm Card */
    .tw-exp-card, .tw-exp-card--reverse {
        flex-direction: column;
        gap: 40px;
    }
    .tw-exp-card__image {
        width: 100%;
    }
    .tw-exp-card__image img {
        aspect-ratio: 16/9;
    }
    .tw-exp-card__content {
        padding: 0;
        text-align: center;
    }

    /* Footer */
    .tw-footer__inner {
        flex-direction: column;
        gap: 50px;
    }

    /* Slider Hero */
    .tw-slide-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .tw-slide-text {
        padding-left: 0;
        margin-bottom: 30px;
    }
    .tw-slide-title {
        font-size: 40px;
    }
    .tw-slide-image {
        display: none;
    }
    .tw-slider-nav {
        right: 50%;
        transform: translateX(50%);
        bottom: 20%;
    }
}
/* --- 7. TOURS GRID (A&K INSPIRED STYLE) --- */
.tw-tours {
    background-color: var(--tw-color-bg);
    text-align: center;
}

.tw-tours__header {
    margin-bottom: 60px;
}

.tw-tours__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tw-tour-card {
    position: relative;
    display: block;
    height: 550px; /* Chiều cao cố định để card trông bề thế */
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.tw-tour-card__image {
    width: 100%;
    height: 100%;
}

.tw-tour-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hiệu ứng zoom ảnh khi hover */
.tw-tour-card:hover .tw-tour-card__image img {
    transform: scale(1.05);
}

/* Lớp phủ mờ Xanh Ngọc Bích ở đáy để nổi chữ */
.tw-tour-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 63, 51, 0.95) 0%, rgba(30, 63, 51, 0.4) 35%, rgba(0,0,0,0) 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
}

.tw-tour-card__title {
    font-family: var(--tw-font-heading);
    font-size: 34px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ffffff;
    transition: transform 0.4s ease;
}

.tw-tour-card__desc {
    font-family: var(--tw-font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: #e0e0e0;
    opacity: 0; /* Ẩn đi khi bình thường */
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hiệu ứng trượt chữ lên khi hover */
.tw-tour-card:hover .tw-tour-card__title {
    transform: translateY(-10px);
}

.tw-tour-card:hover .tw-tour-card__desc {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE CHO MOBILE & TABLET --- */
@media (max-width: 992px) {
    .tw-tours__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tw-tours__grid {
        grid-template-columns: 1fr;
    }
    .tw-tour-card {
        height: 450px;
    }
    /* Trên mobile không có chuột để hover, nên cho chữ hiện luôn */
    .tw-tour-card__title {
        transform: translateY(-10px);
    }
    .tw-tour-card__desc {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- SPLIT LAYOUT (HÌNH 4: CHỮ TRÁI - ẢNH PHẢI) --- */
.tw-split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.tw-split-left {
    flex: 0 0 35%; /* Cột trái chiếm 35% chiều rộng */
    padding-right: 40px;
}

.tw-split-right {
    flex: 0 0 65%; /* Cột phải chiếm 65% chiều rộng */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Responsive cho điện thoại */
@media (max-width: 992px) {
    .tw-split-layout {
        flex-direction: column;
        text-align: center;
    }
    .tw-split-left {
        flex: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    .tw-split-right {
        flex: 100%;
        width: 100%;
    }
}
@media (max-width: 768px) {
    .tw-split-right {
        grid-template-columns: 1fr; /* Mobile rớt xuống 1 cột */
    }
}