/*
Theme Name: Let's Boat
Theme URI: https://letsboat.club
Author: Alectiv
Author URI: https://alectiv.com
Description: Ett anpassat WordPress-tema för att använda ACF och dynamiska menyer.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: letsboat
Tags: responsive, flexible-content, modern
*/

*, :after, :before {
    border: 0 solid var(--lb-border);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    overflow-x: hidden;
}

html {
    -webkit-text-size-adjust: 100%;
    font-family: var(--lb-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.navbar__menu {
    display: flex;
    align-items: center;
    margin-left: 2.25rem;
}

@media (max-width: 1100px) {
    .navbar__menu {
        margin-left: 1.25rem;
    }
}

.navbar__menu-right .navbar__menu-list {
    gap: 12px;
}

.navbar__menu-right .button a::after {
    display: none !important;
}

.navbar--scrolled .navbar__menu-right .button {
    border-color: #fff;
    color: #fff;
}

.navbar--scrolled .navbar__menu-right .button:hover {
    color: #fff;
}

html {
    padding: 0;
    margin: 0;
}

* {
    box-sizing: border-box;
}

html {
    box-sizing: border-box;
    -ms-overflow-style: scrollbar;
}

html {
    line-height: 1.5;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}


body {
    margin: 0;
    font-family: var(--lb-font-sans);
    color: var(--lb-deep);
    -webkit-font-smoothing: antialiased;
}

.button {
    align-items: center;
    background: none;
    border: 1px solid var(--lb-white);
    border-radius: var(--lb-radius-pill);
    color: var(--lb-white);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--lb-font-sans);
    font-size: 16px;
    justify-content: center;
    padding: 15px 25px;
    transition: color var(--lb-duration) var(--lb-ease), background-color var(--lb-duration) var(--lb-ease), border-color var(--lb-duration) var(--lb-ease), transform var(--lb-duration) var(--lb-ease);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    font-style: normal;
    font-weight: var(--lb-fw-medium);
    line-height: normal;
    letter-spacing: var(--lb-tracking);
}

.button:hover {
    transform: translateY(-1px);
}

.button__label {
    display: inline-block;
}

.button--with-icon {
    gap: 0.62rem;
    padding: 0.275rem 0.375rem 0.275rem 1.375rem;
}

.menu-item--button > a {
    background-color: var(--lb-blue-mid);
    color: var(--lb-white);
    padding: 0.5rem 1rem;
    border-radius: var(--lb-radius-sm);
    text-decoration: none;
    transition: background-color var(--lb-duration) var(--lb-ease);
}

.menu-item--button > a:hover {
    background-color: var(--lb-blue);
}

.button.secondary {
    background: #fff;
    color: var(--lb-deep);
}

.layout-dark .navbar .menu-item.current-menu-item {
    color: var(--lb-deep);
}

.layout-dark .navbar .menu-item.current-menu-item:hover {
    color: var(--lb-deep);
}


.layout-dark .navbar .menu-item.current-menu-item:hover:after {
    color: var(--lb-deep);
}


.button:hover {
    transform: translateY(-1px);
}

.open {
    box-shadow: none !important;
}

.button.standard {
    border-color: var(--lb-navy);
    background: var(--lb-navy);
    color: #fff;
}

.inline-block {
    display: inline-block;
}

.button.outlined {
    background: none;
}

.button.outlined:hover {
    color: #000;
    background: #fff;
}

.button.outlined:hover a {
    color: #000;
}

.navbar--scrolled .navbar__menu-right .button.outlined:hover {
    color: #000;
}

.layout-dark .navbar--scrolled .navbar__menu-right .button.outlined:hover a {
    color: #fff;
}

.layout-dark .navbar__menu-right .button.outlined:hover a {
    color: #fff;
}

html {
    margin-top: 0 !important;
}

.navbar__mobile-contact {
    margin: 30px 15px 15px;
}

ul {
    margin: 0;
    list-style: none;
    padding-left: 0;
}

/* Navbar base styles */
.navbar {
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    height: 95px;
    width: 100%;
    top: 0;
    transition: background-color 0.3s ease, top 0.3s ease;
}

.navbar.hidden {
    top: -7rem;
}

.navbar__left {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.navbar__menu-right {
    display: flex;
    align-items: center;
}

.navbar__menu-list {
    list-style: none;
    margin: 0;
}

.navbar.navbar--opened {
    background-color: var(--lb-ink);
}

.navbar.navbar--opened .navbar__container {
    z-index: 1;
    position: relative;
    background: var(--lb-ink);
}

.layout-dark .navbar .menu-item {
    color: #000;
}

.layout-dark .navbar .menu-item:hover {
    color: #000;
}

.navbar.navbar--dark .menu-icon__bar {
    background-color: var(--lb-ink);
}

.navbar.navbar--scrolled {
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    background-color: rgba(6, 40, 67, 0.78);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px;
    left: 0px;
    right: 0px;
    height: 85px;
    top: 0px;
    width: 100%;
    transition: background-color 0.35s ease, height 0.3s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}


.navbar.navbar--scrolled .menu-item {
    color: #fff;
}

.navbar.navbar--scrolled .menu-item:hover {
    color: #fff;
}

.navbar.navbar--scrolled .menu-icon__bar {
    background-color: #fff;
}

.navbar__container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: var(--lb-container);
    margin: 0 auto;
    padding: 0 3.125rem;
}

@media screen and (max-width: 992px) {
    #menu-main-menu-right {
        display: none;
    }

    .navbar__container {
        gap: 0.5rem;
        padding-left: 1.125rem;
        padding-right: 1.125rem;
    }
}

.navbar__home-link {
    display: flex;
    align-items: center;
}

.navbar__home-link img {
    height: auto;
}

.navbar__menu-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.navbar__menu-list .menu-item {
    color: white;
}


.navbar__menu-right .navbar__menu-list .menu-item {
    color: white;
}

.navbar__menu-right .navbar__menu-list .menu-item.button.outlined:hover {
    color: #000;
}

.navbar__menu-right .navbar__menu-list .menu-item:not(.button) {
    text-align: center;
    margin: 0 0.875rem;
    position: relative;
    font-family: var(--lb-font-sans);
    font-size: 0.875rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    align-items: center;
    line-height: normal;
    display: flex;
}

.navbar__menu-list .menu-item:not(.button) {
    text-align: center;
    margin: 0 0.875rem;
    position: relative;
    font-family: var(--lb-font-sans);
    font-size: 0.875rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    align-items: center;
    line-height: normal;
    display: flex;
}


/* Reset any inherited link decoration in the navbar. */
.navbar__menu a,
.navbar__menu-right a {
    text-decoration: none !important;
    border-bottom: 0 !important;
}

/* Subtle centered hover underline – only on hover, never permanent. */
.navbar__menu .menu-item:not(.button) > a,
.navbar__menu-right .menu-item:not(.button) > a {
    position: relative;
    transition: opacity 0.25s ease, color 0.25s ease;
}

.navbar__menu .menu-item:not(.button) > a::after,
.navbar__menu-right .menu-item:not(.button) > a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 22px;
    height: 1.5px;
    background-color: currentColor;
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.25s ease;
}

.navbar__menu .menu-item:not(.button):hover > a::after,
.navbar__menu-right .menu-item:not(.button):hover > a::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
}

/* Slightly fade non-active items so the active page reads as primary. */
.navbar__menu .menu-item:not(.button) > a,
.navbar__menu-right .menu-item:not(.button) > a {
    opacity: 0.78;
}

.navbar__menu .menu-item:not(.button):hover > a,
.navbar__menu-right .menu-item:not(.button):hover > a,
.navbar__menu .menu-item.current-menu-item > a,
.navbar__menu-right .menu-item.current-menu-item > a,
.navbar__menu .menu-item.current-menu-ancestor > a,
.navbar__menu-right .menu-item.current-menu-ancestor > a {
    opacity: 1;
}

/* Tiny indicator dot for the active page (no full underline). */
.navbar__menu .menu-item.current-menu-item > a::before,
.navbar__menu .menu-item.current-menu-ancestor > a::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
    transform: translateX(-50%);
    opacity: 0.9;
}

/* Hide the indicator dot when its item is being hovered (underline takes over). */
.navbar__menu .menu-item.current-menu-item:hover > a::before,
.navbar__menu .menu-item.current-menu-ancestor:hover > a::before {
    opacity: 0;
}

@media (max-width: 991px) {
    .navbar__menu {
        display: none;
    }
}

/* Contact link */
.navbar__contact-link {
    color: #000;
    background-color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 0 2.2rem;
    height: 3.4375rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Lock page scroll while drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Drawer / hamburger trigger – visible on all viewports */
.navbar__menu-button {
    border-radius: var(--lb-radius-pill);
    width: 56px;
    height: 56px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.navbar__menu-button:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.navbar__menu-button:active {
    transform: translateY(0);
}

.navbar__menu-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.navbar__menu-button.menu-icon__bar--top {
    transform: translateY(6px) rotate(45deg);
}

.navbar__menu-button.menu-icon__bar--bottom {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar__menu-button .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 1.45rem;
    height: 0.8rem;
}

.navbar__menu-button .menu-icon__bar {
    width: 100%;
    height: 1.3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Drawer panel */
.navbar__mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    max-width: 100%;
    height: 100vh;
    background-color: var(--lb-deep);
    transition: transform 0.4s ease-in-out;
    transform: translateX(100%);
    z-index: 60;
    display: block;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.25);
}

.navbar__mobile-menu[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .navbar__mobile-menu {
        width: 100%;
        box-shadow: none;
    }
}

.navbar__mobile-menu .navbar__mobile-list {
    padding-top: 120px;
}

.navbar__mobile-menu.open {
    transform: translateX(0);
}

.navbar__mobile-menu.closing {
    transform: translateX(100%);
}

/* Drawer backdrop */
.navbar__drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 55;
    pointer-events: none;
}

.navbar__drawer-backdrop[hidden] {
    display: none;
}

.navbar__drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer close button */
.navbar__drawer-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 1;
}

.navbar__drawer-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}

.navbar__drawer-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.navbar__mobile-link {
    color: #fff;
    height: 4.0625rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
    align-items: center;
}

@media screen and (max-width: 767px) {
    .navbar__mobile-link {
        font-size: 1.1rem;
        height: 4.0625rem;
        padding-left: .9375rem;
        padding-right: .9375rem;
    }
}

/* Hamburger icon animation */
.menu-icon {
    position: relative;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 15; /* Ensure it's above menu */
}

.menu-icon__bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-icon__bar--top {
    top: 0;
}

.menu-icon__bar--middle {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon__bar--bottom {
    bottom: 0;
}

.navbar__menu-button.open .menu-icon__bar--top {
    transform: rotate(45deg) translate(4px, 4px);
    background-color: #fff;
}

.navbar__menu-button.open .menu-icon__bar--middle {
    opacity: 0; /* Hide middle bar */
    background-color: #fff;
}

.navbar__menu-button.open .menu-icon__bar--bottom {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: #fff;
}

/* Mobile menu links */
.navbar__mobile-list {
    margin: 0;
    padding: 20px;
    list-style: none;
    text-align: left;
}

.navbar__mobile-list li {
    margin: 20px 0;
}

.navbar__mobile-list a {
    color: #FFF;
    font-family: var(--lb-font-display);
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 110%;
}

.navbar__mobile-list a:hover {
    color: gray;
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 15px 20px;
    min-width: 200px;
    display: none;
    margin-top: 15px;
    margin-left: 30px;
    z-index: 100;
}

.dropdown.is-hovered {
    display: block;
}

.dropdown__item {
    padding: 10px 0;
}

.dropdown__item a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
}

.dropdown__item a:hover {
    color: var(--lb-blue);
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.layout-dark {
    padding-top: 75px;
}

.layout-dark .admin-bar {
    padding-top: 106px;
}

.admin-bar .navbar {
    top: 32px;
}

.layout-dark .navbar__menu-button .menu-icon__bar {
    background-color: #000;
}

.layout-dark .navbar__container .button {
    color: #000;
    border: 1px solid #000;
}

.layout-dark .navbar__container .button:hover {
    background: #000;
    color: #fff;
}

.layout-dark.navbar--scrolled .navbar__container .button,
.layout-dark.navbar--opened .navbar__container .button {
    color: #fff;
    border: 1px solid #fff;
}

.layout-dark.navbar--scrolled .navbar__container .button:hover,
.layout-dark.navbar--opened .navbar__container .button:hover {
    background: #fff;
    color: #000;
}

.navbar--scrolled .navbar__home-link img {
    height: auto;
}



@media only screen and (max-width: 767px) {
    .navbar__home-link img {
        height: auto;
        max-width: 175px;
    }

    .hero__container.no-background {
        color: #000;
        padding-bottom: 0px;
        min-height: calc(8rem + 20px);
    }
}

.hero__container.align-items-start {
    align-items: flex-start;
}

.hero__container.align-items-center {
    align-items: center;
}

.hero__container.justify-content-flex-start {
    justify-content: flex-start;
}

.hero__container.justify-content-center {
    justify-content: center;
}

.hero__container.justify-content-end {
    justify-content: center;
}

.hero__container.text-align-left {
    text-align: left;
}

.hero__container.text-align-center {
    text-align: center;
}

.hero__container.text-align-right {
    text-align: right;
}

@media only screen and (max-width: 767px) {
    .hero__container.justify-content-mobile-flex-start {
        justify-content: flex-start;
    }

    .hero__container.justify-content-mobile-center {
        justify-content: center;
    }

    .hero__container.justify-content-mobile-space-between {
        justify-content: space-between;
    }
}

.hero__image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero__text {
    padding-bottom: 42px;
}

.hero.no-slider .hero__text {
    padding-bottom: 0px;
}

.hero__text.with-see-more {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.hero__see-more svg {
    width: 45px;
    height: 45px;
}

@media only screen and (max-width: 767px) {
    .hero__see-more svg {
        width: 37px;
        height: 37px;
    }
}

.hero__see-more:hover {
    cursor: pointer;
}

.hero__see-more:hover svg circle {
    fill: #fff;
    fill-opacity: 1;
    transition: 0.4s;
}

.hero__see-more:hover svg path {
    fill: #fff;
    transition: 0.4s;
}

.hero__see-more:hover svg path:nth-child(2), .hero__see-more:hover svg path:nth-child(3) {
    fill: transparent;
    stroke: #000;
    transition: 0.4s;
}

.hero__image img {
    min-height: 100%;
    height: 100svh;
    width: 100%;
    object-fit: cover;
}

.hero__overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.7) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

.hero__subtext {
    margin-top: 17px;
    max-width: 750px;
    font-style: normal;
    letter-spacing: 0.04375rem;
    font-family: var(--lb-font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}

@media only screen and (max-width: 767px) {
    .hero__subtext {
        font-size: 0.92rem;
        line-height: 140%;
        margin-top: 24px;
    }
}

.hero__actions, .cover__actions {
    display: flex;
    margin-top: 46px;
    gap: 14px;
}

@media only screen and (max-width: 767px) {
    .hero__actions, .cover__actions {
        margin-top: 30px;
    }
}

.full-height {
    height: calc(100vh + 50px); /* Fallback */
    height: calc(100svh + 50px);
}

.full-height .hero__container, .full-height .cover__container {
    height: calc(100vh); /* Fallback */
    height: calc(100svh);
}

.full-height .hero__image, .full-height .cover__image {
    height: calc(100vh + 50px); /* Fallback */
    height: calc(100svh + 50px);
}


html:not(.no-js) main [data-aos=fade-up], html:not(.no-js) footer [data-aos=fade-up] {
    -webkit-transform: translate3d(0, 20px, 0);
    transform: translate3d(0, 20px, 0);
}

section+section {
    margin-bottom: 7.313rem !important;
    margin-top: 0 !important;
}

.hero + .two-columns, .cover + .two-columns {
    margin-top: 7.313rem !important;
}


.hero + .columns, .cover + .columns {
    margin-top: 7.313rem !important;
}

@media (max-width: 992px) {
    section+section {
        margin-bottom: 3.313rem !important;
        margin-top: 0 !important;
    }

    .hero + .two-columns {
        margin-top: 3.313rem !important;
    }


    .hero + .columns {
        margin-top: 3.313rem !important;
    }

}

.inline-flex {
    display: inline-flex;
}

.hide-desktop {
    display: none!important;
}

@media (max-width: 992px) {
    .hide-desktop {
        display: block!important;
    }
}
