/* Jojos Site Styles */
@import url('https://fonts.googleapis.com/css2?family=Cookie:wght@400&family=Nunito:wght@400;600&display=swap');

.hero-banner-item {
    position: relative;
    overflow: hidden;
    width: 100%;
}

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

/* Ensure any internal heading typography is bold and legible */
.hero-content h1, .hero-content h2, .hero-content h3 {
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: 1.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Vertical alignments for Flexbox parent */
.vertical-align-top {
    align-items: flex-start !important;
}

.vertical-align-middle {
    align-items: center !important;
}

.vertical-align-bottom {
    align-items: flex-end !important;
}

/* Horizontal alignments for Flexbox parent */
.horizontal-align-left {
    justify-content: flex-start !important;
}

.horizontal-align-center {
    justify-content: center !important;
}

.horizontal-align-right {
    justify-content: flex-end !important;
}

/* Text alignments inside container based on horizontal positioning */
.horizontal-align-left .hero-content {
    text-align: left;
}

.horizontal-align-center .hero-content {
    text-align: center;
}

.horizontal-align-right .hero-content {
    text-align: right;
}

/* Media gallery slider */
.media-gallery-slider .carousel-inner {
    border-radius: 0;
    overflow: hidden;
    background-color: #212529;
}

@media (min-width: 768px) {
    .media-gallery-slider .carousel-inner {
        border-radius: 0.5rem;
    }
}

.media-gallery-slider__image {
    object-fit: cover;
    object-position: center;
}

.media-gallery-slider--landscape .media-gallery-slider__image {
    aspect-ratio: 16 / 9;
}

.media-gallery-slider--portrait {
    max-width: 480px;
    margin-inline: auto;
}

    .media-gallery-slider--portrait .media-gallery-slider__image {
        aspect-ratio: 3 / 4;
    }

/* hide the chevron/arrow buttons for media on mobile */
@media (max-width: 768px) {
    .media-gallery-slider .carousel-control-prev,
    .media-gallery-slider .carousel-control-next {
        display: none;
    }
}

/* Lazy Loading Media Thumbnail Gallery Styles */
.gallery-thumbnail-btn {
    aspect-ratio: 1 / 1;
    display: block;
    cursor: pointer;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.gallery-thumbnail-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* WCAG High Contrast Focus Ring */
.gallery-thumbnail-btn:focus-visible,
.gallery-nav-btn:focus-visible,
.gallery-strip-btn:focus-visible,
.gallery-modal-close:focus-visible {
    outline: 3px solid #0d6efd !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.4) !important;
}

.gallery-thumbnail-img {
    transition: transform 0.3s ease;
}

.gallery-thumbnail-btn:hover .gallery-thumbnail-img {
    transform: scale(1.06);
}

.gallery-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-thumbnail-btn:hover .gallery-thumbnail-overlay,
.gallery-thumbnail-btn:focus-visible .gallery-thumbnail-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    transform: scale(0.8);
    transition: transform 0.25s ease;
}

.gallery-thumbnail-btn:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* Modal Lightbox Styling */
.media-gallery-modal .modal-content {
    background-color: #121212 !important;
    border-radius: 0.75rem;
}

.gallery-nav-btn {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 10;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.gallery-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.gallery-strip-btn {
    width: 60px;
    height: 60px;
    min-width: 44px;
    min-height: 44px;
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-strip-btn.active,
.gallery-strip-btn:hover,
.gallery-strip-btn:focus-visible {
    opacity: 1;
    transform: scale(1.05);
}

/* Reduced Motion Override for Accessibility */
@media (prefers-reduced-motion: reduce) {
    .gallery-thumbnail-btn,
    .gallery-thumbnail-img,
    .gallery-thumbnail-overlay,
    .gallery-zoom-icon,
    .gallery-nav-btn,
    .gallery-strip-btn {
        transition: none !important;
        transform: none !important;
    }
}

.section-heading-container {
    /* Centers the text and the background swoosh */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Adds breathing room around the heading */
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 800px;
    /* Applies the swoosh image */
    background-image: url('../static-media/yellow-swoosh.svg'); /* Update this path to where you save the SVG */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80% auto; /* Adjust this percentage to make the swoosh larger or smaller */
}

.section-heading-title {
    /* Styling the text to match the logo's aesthetic */
    font-family: 'Cookie', 'Nunito', cursive;
    font-size: 7.5rem;
    font-weight: 600;
    font-style: italic;
    color: #1a1a1a; /* A soft black/dark grey, just like the logo text */
    margin: 0;
    line-height: 1.2;
    z-index: 2; /* Ensures text stays on top of the background */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .section-heading-title {
        font-size: 2.5rem;
    }

    .section-heading-container {
        background-size: 95% auto;
        padding: 40px 15px;
    }
}

/* Contact page */
.contact-page__heading {
    padding-top: 40px;
    padding-bottom: 24px;
}

.contact-page__intro {
    max-width: 40rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: #333;
}

.contact-page__alert {
    max-width: 40rem;
}

.contact-form {
    font-family: 'Nunito', sans-serif;
}

.contact-form__submit {
    min-width: 10rem;
    padding: 0.65rem 1.25rem;
}

.contact-form__honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-chat {
    font-family: 'Nunito', sans-serif;
}

.contact-chat__link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1.1rem;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.contact-chat__link:hover,
.contact-chat__link:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.contact-chat__link:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 3px;
}

.contact-chat__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    flex-shrink: 0;
}

.contact-chat__link--whatsapp {
    background-color: #25d366;
}

.contact-chat__link--messenger {
    background-color: #0084ff;
}

.contact-chat__link--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

@media (prefers-reduced-motion: reduce) {
    .contact-chat__link {
        transition: none;
    }

    .contact-chat__link:hover,
    .contact-chat__link:focus-visible {
        transform: none;
    }
}

/* Insights listing */
.insights-listing__heading {
    padding-top: 40px;
    padding-bottom: 24px;
}

.insights-listing__intro {
    max-width: 40rem;
    font-family: 'Nunito', sans-serif;
    font-size: 1.125rem;
    color: #333;
}

.insight-card {
    font-family: 'Nunito', sans-serif;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insight-card:hover,
.insight-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.insight-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.insight-card__link:hover,
.insight-card__link:focus-visible {
    color: inherit;
}

.insight-card__link:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 3px;
}

.insight-card__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background-color: #212529;
}

.insight-card__image--placeholder {
    background: linear-gradient(135deg, #343a40, #6c757d);
}

.insight-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-card__date {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.insight-card__title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.insight-card__excerpt {
    color: #333;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.insight-card__cta {
    font-weight: 600;
    text-decoration: underline;
}

/* Insight article */
.insight-article {
    font-family: 'Nunito', sans-serif;
}

.insight-article__hero {
    min-height: 280px;
    background-color: #212529;
}

.insight-article__hero-image {
    width: 100%;
    height: 55vh;
    min-height: 280px;
    max-height: 520px;
    object-fit: cover;
}

.insight-article__hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.insight-article__hero-content {
    position: relative;
    z-index: 2;
}

.insight-article__hero-content--overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 0;
    color: #fff;
}

.insight-article__kicker a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.insight-article__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.insight-article__content {
    max-width: 44rem;
}

.insight-article__excerpt {
    font-size: 1.25rem;
}

.insight-article__body :where(h2, h3, h4) {
    margin-top: 1.75rem;
    font-weight: 700;
}

.insight-article__body img {
    max-width: 100%;
    height: auto;
}

/* Latest insights carousel */
.latest-insights-carousel__heading {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.latest-insights-slide {
    position: relative;
    display: block;
}

.latest-insights-slide:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 3px;
}

.latest-insights-slide__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.latest-insights-slide__content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 2.5rem 1.5rem;
}

.latest-insights-slide__title {
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 0.5rem;
}

.latest-insights-slide__excerpt {
    max-width: 40rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.latest-insights-slide__placeholder {
    background: linear-gradient(135deg, #343a40, #6c757d);
}

@media (prefers-reduced-motion: reduce) {
    .insight-card {
        transition: none;
    }

    .insight-card:hover,
    .insight-card:focus-within {
        transform: none;
    }
}

/* Main navigation — nested menus */
.navbar .has-submenu {
    position: relative;
}

.navbar .nav-item-row {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.navbar .has-submenu > .nav-item-row > .nav-link {
    flex: 1 1 auto;
}

.navbar .submenu-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.navbar .submenu-toggle:hover,
.navbar .submenu-toggle:focus-visible {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}

.navbar .submenu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

.navbar .submenu-toggle__icon {
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.navbar .has-submenu.is-open > .nav-item-row > .submenu-toggle .submenu-toggle__icon {
    transform: rotate(-135deg);
    margin-top: 0.25rem;
}

.navbar .has-submenu > .submenu {
    display: none;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
}

.navbar .has-submenu.is-open > .submenu:not([hidden]) {
    display: block;
}

.navbar .submenu .dropdown-item {
    color: #212529;
}

.navbar .submenu .dropdown-item.active,
.navbar .submenu .dropdown-item:active {
    color: #fff;
    background-color: #0d6efd;
}

.navbar .submenu .dropdown-item:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: -2px;
}

/* Mobile / collapsed: inline accordion */
@media (max-width: 991.98px) {
    .navbar .has-submenu > .submenu {
        position: static;
        float: none;
        width: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        padding: 0.25rem 0 0.5rem;
    }

    .navbar .has-submenu > .submenu .dropdown-item {
        color: rgba(255, 255, 255, 0.85);
        padding: 0.65rem 1.5rem 0.65rem 2rem;
    }

    .navbar .has-submenu > .submenu .dropdown-item:hover,
    .navbar .has-submenu > .submenu .dropdown-item:focus {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .navbar .has-submenu > .submenu .dropdown-item.active {
        color: #fff;
        background-color: rgba(13, 110, 253, 0.45);
    }

    .navbar .has-submenu.is-open > .submenu:not([hidden]) {
        display: block;
    }
}

/* Desktop / tablet landscape: dropdown panel */
@media (min-width: 992px) {
    .navbar .nav-item-row {
        width: auto;
    }

    .navbar .has-submenu > .nav-item-row > .nav-link {
        padding-right: 0.35rem;
    }

    .navbar .submenu-toggle {
        min-width: 2.5rem;
        min-height: auto;
        padding-right: 0.5rem;
    }

    .navbar .has-submenu > .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        min-width: 14rem;
        border: 1px solid rgba(0, 0, 0, 0.15);
        border-radius: 0.375rem;
        background-color: #fff;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

    .navbar .has-submenu.is-open > .submenu:not([hidden]),
    .navbar .has-submenu:hover > .submenu:not([hidden]),
    .navbar .has-submenu:focus-within > .submenu:not([hidden]) {
        display: block;
    }

    .navbar .submenu .dropdown-item {
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar .submenu-toggle__icon {
        transition: none;
    }
}

