/*
Theme Name: Nhon Ly Travel
Theme URI: http://example.com/nhonly-travel
Author: Antigravity
Author URI: http://example.com
Description: A storytelling digital journal theme for Nhon Ly.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nhonly-travel
*/

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'BeautiqueDisplay';
    src: url('assets/fonts/BeautiqueDisplay/BeautiqueDisplay-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'SVN-Ameyallinda';
    src: url('assets/fonts/SVN-Ameyallinda.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #0077b6;
    /* Classic Blue */
    --deep-blue: #0A192F;
    /* Deep Sea - Night Mode */
    --sand-color: #F4E4BC;
    /* Sand */
    --cream-color: #FFFDF5;
    /* Cream - Day Mode */
    --text-color: #333333;
    --text-light: #f4f4f4;
    --accent-color: #D4AF37;
    /* Gold/Accent */
    --cta-color: #FFB703;
    /* Orange/Yellow for CTA */

    --font-heading: 'BeautiqueDisplay', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
    --alt-font: 'SVN-Ameyallinda', sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--cream-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Headings - Force override Elementor defaults */
h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title {
    font-family: var(--font-heading) !important;
    margin-top: 0;
    line-height: 1.2;
    color: var(--deep-blue);
}

/* Specific Elementor Color Overrides */
.elementor-widget-heading .elementor-heading-title {
    color: var(--deep-blue);
    font-family: var(--font-heading) !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    margin-top: 0px;
    margin-block-start: 0em !important;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.alt-font {
    font-family: var(--alt-font) !important;
}

.hidden {
    display: none !important;
}

.absolute {
    position: absolute;
}

.overflow-hidden {
    overflow: hidden;
}

/* Header */

.site-header {
    background: transparent;
    /* Transparent initial */
    width: 100%;
    position: fixed;
    /* Fixed position */
    top: 0;
    z-index: 1000;
    box-shadow: none;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background-color: #0153b0;
    /* Sticky Blue Background */
    height: 60px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled .main-navigation a,
.site-header.scrolled .site-branding h1,
.site-header.scrolled .lang-switch a {
    color: white;
    /* White text on blue bg */
}

.site-header.scrolled .menu-toggle .bar {
    background-color: white;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--deep-blue);
    margin: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--primary-color);
}

/* CTA & Lang Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-btn {
    background-color: var(--cta-color);
    color: var(--deep-blue);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.lang-switch ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.lang-switch li {
    display: inline-block;
}

.lang-switch a {
    font-weight: 700;
    font-size: 0.9rem;
    color: #999;
    text-decoration: none;
}

.lang-switch .current-lang a {
    color: var(--deep-blue);
    text-decoration: underline;
}

/* Custom FullPage Implementation */
#fullpage {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /* We will control movement via JS transform or scrollTo */
    position: relative;
    touch-action: none;
    /* Prevent browser handling of touch */
}

/* Container for all sections to move together if using transform */
.fp-wrapper {
    transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 100%;
    width: 100%;
}

.section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow-y: auto;
    /* Enable internal scrolling */
    display: flex;
    flex-direction: column;

    /* Hide scrollbar for Chrome, Safari and Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Allow scrolling in sections that are explicitly marked or have long content */
.section.allow-scroll {
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Disable fullpage for Elementor Editor */
body.elementor-editor-active,
body.elementor-editor-active html {
    overflow: auto !important;
    height: auto !important;
}

body.elementor-editor-active #fullpage {
    height: auto !important;
    overflow: visible !important;
}

body.elementor-editor-active .section {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
}

body.elementor-editor-active #fp-nav {
    display: none !important;
}

/* Styles for navigation dots */
#fp-nav {
    position: fixed;
    z-index: 1000;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

#fp-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fp-nav ul li {
    margin: 12px 0;
}

#fp-nav ul li a {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

#fp-nav ul li a.active {
    background: #000;
    transform: scale(1.3);
}

/* Hero Section */
#fullpage .section {
    position: relative;
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--white);
    text-align: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    /* Mobile first default */
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
}

.hero p.sub-headline {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
    color: white;
}

/* Intro Section */
.intro {
    padding: 120px 0;
    background-color: var(--cream-color);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: #555;
    font-weight: 300;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: var(--deep-blue);
    margin-bottom: 30px;
}

.intro-quote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    margin-top: 40px;
}

/* Section Common */
.section-padding {
    padding: 100px 0;
}

/* Reality Section (Split/Parallel) */
.reality-section {
    background-color: #fff;
    overflow: hidden;
}

.split-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.split-item {
    flex: 1;
    min-width: 300px;
}

.split-image {
    height: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.split-image h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
}

.split-content {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.split-content h3 {
    font-size: 2.2rem;
    color: #d62828;
    /* Harsh sun color */
    margin-bottom: 20px;
}

.reality-details ul {
    list-style: none;
    padding: 0;
}

.reality-details li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.reality-details li:before {
    content: '•';
    color: #d62828;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Local Way (ZigZag) */
.local-way {
    background-color: var(--cream-color);
}

.zigzag-item {
    display: flex;
    align-items: center;
    margin-bottom: 100px;
    gap: 60px;
}

.zigzag-item:nth-child(even) {
    flex-direction: row-reverse;
}

.zigzag-info {
    flex: 1;
}

.zigzag-img {
    flex: 1;
    border-radius: 2px;
    /* Minimalist */
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--sand-color);
}

.zigzag-img img {
    transition: transform 0.5s ease;
}

.zigzag-img:hover img {
    transform: scale(1.05);
}

.zigzag-info h3 {
    font-size: 2.5rem;
    color: var(--deep-blue);
    margin-bottom: 20px;
}

.zigzag-info p {
    font-size: 1.1rem;
    color: #444;
}

/* Highlight (Dark Mode) */
.section-dark,
.elementor-section.section-dark {
    background-color: var(--deep-blue);
    color: var(--text-light);
    padding: 120px 0;
}

.section-dark h2,
.elementor-section.section-dark .elementor-heading-title {
    color: var(--text-light) !important;
    margin-bottom: 60px;
    font-size: 3rem;
    text-align: center;
}

.section-dark p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.dark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Simple Things (Masonry Grid) */
.simple-section {
    background-color: #fff;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.simple-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.simple-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.simple-card:hover img {
    transform: scale(1.1);
}

.simple-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: white;
}

.simple-content h3 {
    margin: 0;
    font-size: 1.5rem;
}

/* Testimonials */
.social-proof {
    background-color: var(--sand-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.testimonial-item {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin: 0;
}

.testimonial-author {
    margin-top: 20px;
    font-weight: 700;
    color: var(--deep-blue);
    display: flex;
    align-items: center;
}

.testimonial-author:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: var(--cta-color);
    margin-right: 10px;
}

/* Footer (Connect) */
.site-footer {
    background-color: var(--deep-blue);
    color: var(--text-light);
    padding: 80px 0 40px;
    text-align: center;
}

.contact-info h3 {
    color: var(--cta-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-disclaimer {
    max-width: 600px;
    margin: 0 auto 40px;
    font-style: italic;
    opacity: 0.8;
}

.phone-btn {
    display: inline-block;
    font-size: 1.5em;
    color: var(--deep-blue);
    background: var(--cta-color);
    padding: 5px 40px;
    border-radius: 50px;
    font-weight: 700;
    margin: 20px 0;
    transition: transform 0.3s;
}

.phone-btn:hover {
    transform: scale(1.05);
    color: var(--deep-blue);
}

.map-container {
    max-width: 800px;
    margin: 40px auto;
    height: 400px;
    background: #333;
    /* Placeholder */
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    order: 2;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--deep-blue);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .hero h2 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 10px 0;
    }

    .site-header .container {
        flex-direction: row;
        /* Keep row for mobile header */
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation a {

        color: var(--deep-blue);
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden off-canvas */
        width: 80%;
        height: 100vh;
        background: var(--cream-color);
        padding: 80px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .main-navigation.toggled {
        right: 0;
        /* Slide in */
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .menu-toggle.toggled .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.toggled .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.toggled .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .header-actions {
        display: block;
        order: 1;
        /* Hide actions in header for simplicity, or move them inside nav via JS if needed. For now hiding on mobile header row to fit logo and toggle */
    }

    .header-actions span {
        display: none;
    }

    .right-header {
        display: flex;
        align-items: center;
        gap: 10px;
    }


    /* Show actions inside nav if needed, or keep simple */

    .split-content {
        padding: 40px 20px;
    }

    .zigzag-item {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 60px;
    }

    .dark-grid {
        grid-template-columns: 100%;
    }
}


.reality-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.r-col {
    opacity: 0.1;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.r-col.active {
    opacity: 1;
    transform: translateY(0);
}

.r-col h4 {
    color: var(--cta-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.r-col p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Mobile responsive for columns */
@media (max-width: 768px) {
    .reality-cols {
        grid-template-columns: 1fr;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--cta-color);
    color: var(--deep-blue);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: white;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}