/* Top Sub-Navigation */
.top-subnav {
    background-color: #111111;
    border: none;
    box-shadow: none;
    width: 100%;
    padding: 0.45rem 1.25rem;
    min-height: 40px;
    position: relative;
    z-index: 2;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
    display: flex;
    align-items: center;
}

body.has-sticky-subnav .top-subnav {
    position: sticky;
    top: var(--main-navbar-height, 88px);
    z-index: 998;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.top-subnav.is-scrolled {
    background: linear-gradient(to bottom, rgba(8, 8, 8, 0.80), rgba(8, 8, 8, 0.70));
    backdrop-filter: blur(14px);
}

.top-subnav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.top-subnav-list li a {
    font-family: 'Arimo', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0.15rem 0.15rem;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.top-subnav-list li a:hover {
    color: #ffffff;
}

.hero-slideshow,
.bodyboarding-slideshow,
.bodyboarding-trips-slideshow,
.coaches-slideshow,
.yoga-slideshow {
    touch-action: pan-y;
}

@media (min-width: 769px) and (max-width: 992px) {
    .top-subnav {
        padding: 0.4rem 0.9rem;
    }

    .top-subnav-list {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-subnav-list li a {
        font-size: 0.7rem;
        letter-spacing: 0.35px;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .top-subnav {
        padding: 0.2rem 0.65rem;
    }

    .top-subnav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.55rem 0.75rem;
    }

    .top-subnav-list li a {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
        padding: 0.1rem 0.1rem;
        white-space: normal;
        text-align: center;
    }
}

/*Header*/

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 4rem;
    margin: 0 0 0 1.5rem;
}

nav a {
    font-family: 'Arimo', sans-serif;
    font-weight: bolder;
}

#navbarNav .nav-link.active,
#navbarNav .nav-link[aria-current="page"] {
    color: #ffffff !important;
}

nav ul {
    margin-left: 1.5rem;
    gap: 50px;

}

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.95);
    border: none;
    box-shadow: none;
    transition: background-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-navbar.is-scrolled {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.navbar .container-fluid {
    position: relative;
}

@media (max-width: 992px) {
    .navbar .container-fluid {
        justify-content: center;
    }

    .navbar-brand {
        position: static;
        transform: none;
        margin: 0;
    }

    .navbar-toggler {
        position: absolute;
        right: 0.75rem;
        top: 2.75rem;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .navbar-toggler-icon {
        width: 1.75rem;
        height: 1.75rem;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M3.646 5.646a.5.5 0 0 1 .708 0L8 9.293l3.646-3.647a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 0-.708' fill='rgba(255,255,255,0.95)'/%3e%3c/svg%3e");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .navbar-brand img {
        height: 5rem;
        margin: 0;
    }

    nav ul {
        margin-top: 15px;
        margin-bottom: 15px;
        margin-left: 0;
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    /* Force collapsed navbar links to align horizontally */
    .navbar-collapse .navbar-nav {
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-collapse .nav-item {
        margin: 0 0.25rem;
    }
}

/*Header*/

body {
    background-color: rgb(0, 0, 0);
    margin: 0;
}

h1 {
    font-size: 10vh;
}

h2 {
    font-size: 5vh;
}

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

main {
    background-color: #000;
}

.panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem;
}

.panel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1rem;
}

.panel-content h1,
.panel-content h2 {
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.panel-content p {
    margin: 0;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.second-section-right {
    width: 100%;
    margin: 0;
    text-align: left;
}

.second-section-layout {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.3fr);
    gap: 2rem;
    align-items: center;
}

.second-section-layout h2 {
    margin: 0;
}

/* Panel content alignment helpers */
.content-bottom-left {
    align-self: flex-end;
    margin-right: auto;
    margin-bottom: 25px;
    margin-left: 25px;
    text-align: left;
}

.content-center-left {
    align-self: center;
    margin-right: auto;
    text-align: left;
}

.content-top-left {
    align-self: flex-start;
    margin-right: auto;
    text-align: left;
}

.content-right {
    align-self: center;
    margin-left: auto;
    text-align: right;
}

.content-center-right {
    align-self: center;
    margin-left: auto;
    text-align: right;
}

.content-center {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.content-top-center {
    align-self: flex-start;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.panel-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

/* Hero Slideshow */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.045);
    border: none;
    color: #fff;
    width: 68px;
    height: 68px;
    font-size: 2.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    border-radius: 50%;
    transition: background 0.25s;
}

.slide-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
}

.slide-arrow-prev { left: 1.5rem; }
.slide-arrow-next { right: 1.5rem; }

.slide-dots {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}

.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, transform 0.25s;
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.panel-dark {
    min-height: 10vh;
    background-color: #000;
}

.panel-white {
    min-height: 10vh;
    background-color: #ffffff;
}

.panel-white h2,
.panel-white h3 {
    color: #000000;
}

.panel-white p,
.panel-white li {
    color: #1a1a1a;
}

.panel-dark .panel-content {
    max-width: 100%;
}

footer {
    background: #000;
    border-top: 1px solid #3a3a3a;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    margin: 50px 0 0;
    padding: 18px 50px;
}

.footercontact {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    justify-content: left;
    text-align: left;
}

.footertrips {
    list-style: none;
    margin: 0;
    text-align: right;
}

.footerbrand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0;
    gap: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-icon {
    width: 34px;
    height: 34px;
    display: block;
}

.footercontact a {
    color: #e3e3e3;
}

.guidelines-flex {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    margin-left: 9rem;
    margin-right: 8rem;
}

.guidelines-left {
    flex: 1 1 45%;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.guidelines-right {
    flex: 1 1 45%;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.guidelines-left li,
.guidelines-right li {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
    text-align: center;
}

/* Desktop */
@media (min-width: 993px) {
    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3rem;
    }

    .panel-content p {
        font-size: 1.2rem;
    }

    .guidelines-flex {
        margin-left: 8rem;
        margin-right: 8rem;
    }

    .guidelines-left li,
    .guidelines-right li {
        text-align: center;
        font-size: 1.1rem;
    }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
        margin-left: 50px;
        margin-right: 50px;
    }

    h2 {
        font-size: 2.4rem;
    }

    .panel-dark .panel-content {
        margin-left: 50px;
        margin-right: 50px;
    }

    .second-section-right{
        text-align: center;
    }

    .panel-content p {
        font-size: 1.05rem;
    }

    .guidelines-flex {
        margin-left: 2rem;
        margin-right: 2rem;
        gap: 1.25rem;
    }

    .guidelines-left li,
    .guidelines-right li {
        text-align: center;
        font-size: 1rem;
    }

    footer {
        margin: 50px 0 0;
        padding: 18px 50px 0;
    
    }

    .slide-arrow {
        width: 56px;
        height: 56px;
        font-size: 1.8rem;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .second-section-right{
        text-align: center;
    }

    .panel-content p {
        font-size: 1rem;
    }

    .guidelines-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }

    .guidelines-left,
    .guidelines-right {
        max-width: 700px;
    }

    .guidelines-left li,
    .guidelines-right li {
        text-align: center;
        font-size: 1rem;
    }
    
    .slide-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .slide-arrow-prev { left: 0.5rem; }
    .slide-arrow-next { right: 0.5rem; }

    /* Force collapsed navbar links to align horizontally */
    .navbar-collapse .navbar-nav {
        flex-direction: row !important;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 35px;
    }

    .navbar-collapse .nav-item {
        margin: 0 0.25rem;
    }

    #navbarNav .nav-link {
        font-size: 0.85rem;
    }

    footer {
        margin: 20px 0 0;
        padding: 14px 20px 0;
        font-size: 12px;
    }

    .footer {
        font-size: 25px;
    }
    
    .footertrips {
        font-size: 25px;
    }

    img.footer-icon {
        width: 24px;
        height: 24px;
    }


    
}

@media (max-width: 992px) {
    .panel {
        min-height: 80vh;
        min-height: 80svh;
        padding: 5rem 1rem;
    }

    .content-bottom-left,
    .content-center-left,
    .content-top-left,
    .content-right,
    .content-center-right {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .second-section-right {
        width: 100%;
        max-width: 100%;
    }

    .second-section-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.panel,
.panel-overlay,
.panel-content {
    overflow: hidden;
}

/* Waves Section */
.waves-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background-color: #fefefe;
    border: #ffffff solid 12px;
    min-height: 50vh;
    padding: 0;
    gap: 0;
}

.waves-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 5rem 3rem 5rem 4rem;
}

.waves-left h2 {
    color: #000000;
    margin-bottom: 1rem;
}

.waves-left p {
    color: #1a1a1a;
    font-size: 1.1rem;
    margin: 0;
}

.waves-right {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.waves-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.waves-btn {
    display: inline-block;
    margin-top: 1.75rem;
    padding: 0.75rem 2rem;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    border: 2px solid #000000;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.waves-btn:hover {
    background-color: #ffffff;
    color: #000000;
}

@media (max-width: 992px) {
    .waves-section {
        grid-template-columns: 1fr;
    }

    .waves-right {
        order: -1;
        width: 100%;
        height: 420px;
    }

    .waves-img {
        object-position: center 35%;
    }

    .waves-left {
        justify-content: flex-end;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .waves-section {
        grid-template-columns: 1fr;
    }

    .waves-left {
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .waves-btn {
        align-self: center;
    }

    .waves-right {
        width: 100%;
        height: 320px;
    }

    .waves-img {
        object-position: center 30%;
    }
}