/**
 * Intro Section Styles
 * Integrated from MokkaSablon template with Bootstrap 5 adaptations
 * Mobile-first responsive design
 */

/* Header Styling */
.header {
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .navbar {
    width: 100%;
    padding: 0;
}

/* Logo styling - clean and simple */
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.logotype {
    width: 200px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Navbar layout */
.navbar-overlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Hamburger menu styling - two lines */
.hamburger {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-right: 1rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.4s ease;
    border-radius: 2px;
}

/* Scrolled state - dark hamburger */
.navbar-overlay.scrolled .hamburger span {
    background-color: #AB7442;
}

/* Hamburger animation on click */
.hamburger.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Navigation hover effects - 3D Flip (vízszintes vonalon marad) */
.nav__link {
    perspective: 1000px;
    display: inline-block;
    position: relative;
}

.nav__link span {
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    position: relative;
    backface-visibility: hidden;
}

/* Angol szöveg (hátoldal) - 180 fokkal elforgatva Y tengely körül */
.nav__link span::before {
    content: attr(data-hover);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Hover: 180 fokos forgás Y tengely körül (oldalsó flip) */
.nav__link:hover span {
    transform: rotateY(180deg);
}

/* Intro Section */
.intro {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background wrapper for carousel */
.intro__bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Carousel within intro */
.intro__carousel {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

.intro__bg-item {
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

.intro__bg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay for better text readability */
.intro__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(53, 53, 53, 0.7);
    z-index: 2;
}

/* Content container */
.intro__container {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Typography */
.title--overhead {
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    display: block;
    letter-spacing: .18rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.title--display-1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.intro__subtitle {
    font-family: "Playfair Display", serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 2.4rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Action buttons */
.intro__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-to {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.scroll-to:hover {
    color: #AB7442;
}

.scroll-to__line {
    display: block;
    width: 1px;
    height: 40px;
    background: #fff;
    margin-top: 10px;
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* Responsive Design */

/* Tablets */
@media (max-width: 991px) {
    .intro {
        min-height: 500px;
    }

    .intro__bg-item {
        min-height: 500px;
    }

    .logotype {
        width: 150px;
    }

    .title--overhead {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
        letter-spacing: .15rem;
    }

    .title--display-1 {
        font-size: 2.5rem;
    }

    .intro__subtitle {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .navbar__btn {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hamburger {
        display: none;
    }

    .navbar__btn {
        display: block;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .intro {
        min-height: 500px;
    }

    .intro__bg-item {
        min-height: 500px;
        height: 100vh;
    }

    .intro__container {
        padding: 0 1rem;
    }

    .logotype {
        width: 120px;
    }

    .title--overhead {
        font-size: 0.75rem;
        margin-bottom: 0.3rem;
        letter-spacing: .12rem;
    }

    .title--display-1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .intro__subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.8rem;
        line-height: 1.25;
    }

    .intro__actions {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .intro__actions .btn {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .scroll-to {
        bottom: 20px;
        font-size: 0.65rem;
    }

    .scroll-to__line {
        height: 30px;
    }
}

/* Small mobile */
@media (max-width: 575px) {
    .intro {
        min-height: 450px;
    }

    .intro__bg-item {
        min-height: 450px;
    }

    .logotype {
        width: 100px;
    }

    .title--overhead {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        letter-spacing: .1rem;
    }

    .title--display-1 {
        font-size: 1.5rem;
    }

    .intro__subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .intro__actions .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .intro {
        min-height: 100vh;
        height: auto;
    }

    .intro__bg-item {
        min-height: 100vh;
    }

    .intro__container {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .logotype {
        width: 90px;
    }

    .title--overhead {
        font-size: 0.65rem;
        margin-bottom: 0.2rem;
    }

    .intro__subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .intro__actions {
        gap: 0.5rem;
    }

    .intro__actions .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .scroll-to {
        display: none;
    }
}

/* Animation classes */
.js-lines {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.js-lines.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Overlay Mode (initial state - transparent with white text) */
.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1rem 0;
}

/* Light text and elements for transparent navbar */
.navbar-overlay .nav__link {
    color: #fcebc1 !important;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.navbar-overlay .hamburger span {
    background-color: #fff;
    transition: all 0.4s ease;
}

/* Scrolled State - solid white background with dark text */
.navbar-overlay.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-overlay.scrolled .logotype {
    width: 100px;
}

.navbar-overlay.scrolled .nav__link {
    color: #353535 !important;
}

.navbar-overlay.scrolled .hamburger span {
    background-color: #AB7442;
}

/* Mobile menu open state - force solid background */
.navbar-overlay.mobile-menu-open {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar-overlay.mobile-menu-open .nav__link {
    color: #353535 !important;
}

.navbar-overlay.mobile-menu-open .hamburger span {
    background-color: #AB7442;
}

/* Ensure the intro section has proper spacing for fixed navbar */
.intro {
    margin-top: 0;
}

/* Legacy scrolled behavior (kept for compatibility) */
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===========================
   MENU LINK COLORS - CRITICAL FOR VISIBILITY
   =========================== */

/* Menu link hover state */
.navbar-overlay .nav__link:hover {
    color: #fff !important;
}

/* Scrolled state - darker text with hover */
.navbar-overlay.scrolled .nav__link:hover {
    color: #AB7442 !important;
}

/* Current page indicator */
.nav__item._is-current .nav__link {
    font-weight: 600;
}

/* Desktop menu - horizontal layout */
@media (min-width: 992px) {
    .navbar__menu .nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .navbar__menu .nav__item {
        margin: 0;
    }

    .navbar__menu .nav__link {
        padding: 0.5rem 0;
        text-decoration: none;
        letter-spacing: 0.5px;
    }

    /* Hide mobile booking button on desktop */
    .navbar__menu .nav__item .btn__medium {
        display: none;
    }
}

/* Mobile menu - hamburger toggle */
@media (max-width: 991px) {
    .navbar__menu .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
        list-style: none;
        margin: 0;
    }

    .navbar__menu.active .nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar__menu .nav__item {
        margin: 0.5rem 0;
    }

    .navbar__menu .nav__link {
        color: #353535 !important;
        font-size: 1.1rem;
        padding: 0.75rem 0;
        display: block;
        text-decoration: none;
    }

    /* Mobile booking button in menu */
    .navbar__menu .nav__item .btn__medium {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Button styles */
.btn__medium {
    padding: 0.75rem 1.5rem;
    background: #AB7442;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.btn__medium:hover {
    background: #8B5A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(171, 116, 66, 0.3);
}

.btn__medium:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(171, 116, 66, 0.2);
}

.btn-icon-left {
    margin-right: 0.25rem;
    font-size: 0.85em;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 767px) {
    .btn__medium {
        min-height: 48px;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .hamburger {
        padding: 1rem;
        min-width: 48px;
        min-height: 48px;
    }
}
