/* ---------------------------------------------------------------------------
   Shared layout for the simpler content pages (Mentorship, Products, Gallery).
   Kept in one file rather than repeated in each Blade view.

   Note: every section paints its own background-color. Sections that need a
   purple wash use `background-image` for the gradient, never the `background`
   shorthand — the shorthand resets background-color to transparent and lets
   the page behind bleed through.
--------------------------------------------------------------------------- */

.page-hero,
.page-section {
    background-color: var(--tj-black-2);
    padding-top: clamp(55px, 7vw, 90px);
    padding-bottom: clamp(55px, 7vw, 90px);
}
.page-hero {
    background-image: linear-gradient(180deg, rgba(135, 80, 247, 0.1) 0%, var(--tj-black-2) 60%);
    padding-top: clamp(60px, 8vw, 100px);
}
.page-section--cta {
    background-image: linear-gradient(180deg, var(--tj-black-2) 0%, rgba(135, 80, 247, 0.09) 100%);
}

/* headings */
.page-eyebrow,
.page-kicker {
    display: block;
    margin-bottom: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    letter-spacing: 1.2px;
    color: var(--tj-theme-primary);
}
.page-kicker {
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.page-hero__title {
    font-size: clamp(26px, 4.4vw, 42px);
    line-height: 1.28;
    margin-bottom: 24px;
    color: var(--tj-white);
}
.page-hero__lead {
    max-width: 680px;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.68);
    margin: 0;
}
.page-section__title {
    font-size: clamp(23px, 3.4vw, 33px);
    line-height: 1.3;
    margin-bottom: 26px;
    color: var(--tj-white);
}
.page-section__intro {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 34px;
}
.page-prose {
    max-width: 700px;
}
.page-prose p {
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 22px;
}
.page-prose p:last-child {
    margin-bottom: 0;
}

/* forms */
.page-form {
    max-width: 520px;
}
.page-form__field {
    margin-bottom: 22px;
}
.page-form__privacy {
    max-width: 520px;
    margin-top: 20px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.42);
}
.page-error {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #ff6b6b;
}
.page-alert {
    max-width: 620px;
    padding: 16px 20px;
    margin-bottom: 28px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 1.6;
}
.page-alert--success {
    border: 1px solid rgba(63, 185, 132, 0.4);
    border-left: 3px solid #3fb984;
    background-color: rgba(63, 185, 132, 0.1);
    color: #8ee5bd;
}

/* honest empty states */
.page-empty {
    max-width: 620px;
    padding: 30px 32px;
    border: 1px dashed rgba(135, 80, 247, 0.28);
    border-radius: 12px;
}
.page-empty p {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
}
.page-empty p:last-child {
    margin-bottom: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------------------
   Products grid — used once real products exist.
--------------------------------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.product-card {
    display: flex;
    flex-direction: column;
    padding: 26px 26px 28px;
    border: 1px solid rgba(135, 80, 247, 0.18);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.product-card:hover {
    border-color: rgba(135, 80, 247, 0.45);
    transform: translateY(-2px);
}
.product-card__type {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(135, 80, 247, 0.35);
    border-radius: 30px;
    background-color: rgba(135, 80, 247, 0.1);
    color: var(--tj-theme-primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}
.product-card__title {
    font-size: 21px;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--tj-white);
}
.product-card__desc {
    flex: 1;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 20px;
}
.product-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}
.product-card__price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 17px;
    font-weight: 600;
    color: var(--tj-white);
}

/* ---------------------------------------------------------------------------
   Gallery grid + magnific-popup lightbox trigger.
--------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(135, 80, 247, 0.18);
    background-color: rgba(255, 255, 255, 0.02);
}
.gallery-item img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}
.gallery-item__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 18px 16px;
    background-image: linear-gradient(180deg, rgba(5, 7, 9, 0) 0%, rgba(5, 7, 9, 0.9) 100%);
    color: var(--tj-white);
    pointer-events: none;
}
.gallery-item__event {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 11px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--tj-theme-primary);
    margin-bottom: 5px;
}
.gallery-item__text {
    display: block;
    font-size: 15px;
    line-height: 1.5;
}
.gallery-item__date {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

@media only screen and (max-width: 575px) {
    .gallery-item img {
        height: 200px;
    }
}

/* ---------------------------------------------------------------------------
   Footer navigation.

   The theme already animates a gradient underline in on hover, but at rest the
   links were indistinguishable from plain text. These rules add a resting
   affordance (faint purple rule + slightly dimmed colour) and a clear hover
   state, so they read as links at a glance.
--------------------------------------------------------------------------- */
.footer-menu ul li a {
    color: rgba(255, 255, 255, 0.78);
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(135, 80, 247, 0.35);
    transition: color 0.25s ease, border-color 0.25s ease;
}
.footer-menu ul li a::after {
    content: "\2197"; /* ↗ */
    display: inline-block;
    margin-left: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    font-weight: 400;
    transition: opacity 0.25s ease, width 0.25s ease, margin-left 0.25s ease;
}
.footer-menu ul li a:hover,
.footer-menu ul li a:focus-visible {
    color: var(--tj-theme-primary);
    /* Hand the underline over to the theme's animated gradient rule. */
    border-bottom-color: transparent;
}
.footer-menu ul li a:hover::after,
.footer-menu ul li a:focus-visible::after {
    opacity: 1;
    width: 0.85em;
    margin-left: 5px;
}

/* ---------------------------------------------------------------------------
   About page — Skills and Testimonials.
   Both are driven from the admin panel and render an empty state when there
   is nothing to show, so neither section can ever look broken.
--------------------------------------------------------------------------- */
.about-skills,
.about-testimonials {
    background-color: var(--tj-black-2);
    padding-top: clamp(55px, 7vw, 90px);
    padding-bottom: clamp(55px, 7vw, 90px);
}
.about-testimonials {
    background-image: linear-gradient(180deg, var(--tj-black-2) 0%, rgba(135, 80, 247, 0.07) 100%);
}
.about-skills__title {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.2;
    margin-bottom: 34px;
    color: var(--tj-white);
}

/* skills */
.about-skills__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px 40px;
}
.about-skills__category {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--tj-theme-primary);
    margin-bottom: 16px;
}
.about-skills__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.about-skills__list li {
    padding: 7px 16px;
    border: 1px solid rgba(135, 80, 247, 0.3);
    border-radius: 30px;
    background-color: rgba(135, 80, 247, 0.06);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}
.about-skills__list li:hover {
    border-color: var(--tj-theme-primary);
    background-color: rgba(135, 80, 247, 0.14);
}

/* testimonials */
.about-quote {
    position: relative;
    max-width: 760px;
    margin: 0 0 22px;
    padding: 28px 30px 28px 62px;
    border: 1px solid rgba(135, 80, 247, 0.18);
    border-left: 3px solid var(--tj-theme-primary);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
}
.about-quote::before {
    content: "\201C";
    position: absolute;
    left: 22px;
    top: 14px;
    font-size: 46px;
    line-height: 1;
    color: rgba(135, 80, 247, 0.5);
}
.about-quote p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}
.about-quote footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
}
.about-quote__name {
    font-weight: 600;
    color: var(--tj-white);
}
.about-quote__title {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
}

/* shared empty state */
.about-empty {
    max-width: 620px;
    padding: 26px 28px;
    border: 1px dashed rgba(135, 80, 247, 0.28);
    border-radius: 12px;
}
.about-empty p {
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------------------
   Grouped main navigation.

   Desktop (992px+): hover/focus dropdowns. Mobile rules live in responsive.css
   alongside the slide-in drawer, where sub-items are shown inline rather than
   on hover — there is no hover on touch.

   SPECIFICITY NOTE: the theme styles every nested list inside .header-menu via
   `.tj-header-area .header-menu ul` (display:flex; flex-wrap:wrap;
   column-gap:35px) and `.tj-header-area .header-menu ul li a`
   (display:flex; padding:10px 0). Those also match the .submenu, so every rule
   below is scoped with `.tj-header-area` to outrank them — otherwise each
   dropdown renders as a wide wrapping flex row and collides with its
   neighbour.
--------------------------------------------------------------------------- */
.tj-header-area .header-menu .menu-parent {
    cursor: pointer;
    user-select: none;
}
.tj-header-area .header-menu .menu-parent::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    vertical-align: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

@media only screen and (min-width: 992px) {
    .tj-header-area .header-menu .has-submenu {
        position: relative;
    }

    /* The panel. Left-aligned to its own trigger so it can never drift toward
       a neighbouring dropdown, and a fixed width so it is a single clean
       column rather than a wrapping grid. */
    .tj-header-area .header-menu .submenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        transform: translateY(10px);
        width: 200px;
        margin: 0;
        padding: 8px 0;
        list-style: none;

        /* Undo the theme's flex row for this nested list. */
        display: block;
        flex-wrap: nowrap;
        column-gap: 0;
        row-gap: 0;

        background-color: var(--tj-theme-secondary);
        border: 1px solid rgba(135, 80, 247, 0.25);
        border-radius: 10px;
        box-shadow: 0 18px 40px rgba(5, 7, 9, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        z-index: 200;
    }

    /* Bridges the gap under the trigger so the pointer can travel down into
       the panel without it closing. */
    .tj-header-area .header-menu .has-submenu::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 12px;
    }

    .tj-header-area .header-menu .has-submenu:hover > .submenu,
    .tj-header-area .header-menu .has-submenu:focus-within > .submenu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        /* Sits above a neighbouring panel that is still fading out, so moving
           between triggers never shows one bleeding through the other. */
        z-index: 210;
    }
    .tj-header-area .header-menu .has-submenu:hover > .menu-parent::after,
    .tj-header-area .header-menu .has-submenu:focus-within > .menu-parent::after {
        transform: rotate(-135deg);
    }

    .tj-header-area .header-menu .submenu li {
        display: block;
        width: 100%;
        margin: 0;
    }
    .tj-header-area .header-menu .submenu li a {
        display: block;
        width: 100%;
        padding: 11px 20px;
        white-space: nowrap;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.78);
        transition: color 0.2s ease, background-color 0.2s ease;
    }
    .tj-header-area .header-menu .submenu li a:hover,
    .tj-header-area .header-menu .submenu li a:focus {
        color: var(--tj-theme-primary);
        background-color: rgba(135, 80, 247, 0.1);
    }
    /* The theme animates an underline under nav links; inside the dropdown a
       background highlight reads better. */
    .tj-header-area .header-menu .submenu li a::before {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   Mobile drawer close button.

   Hidden on desktop, where .header-menu is an ordinary inline nav. The mobile
   styling lives in responsive.css alongside the rest of the drawer.
--------------------------------------------------------------------------- */
.header-menu .menu-close {
    display: none;
}
