/*
============================================================
THE CUTTING EDGE — TEAM.CSS
CURRENT SITE — COMPLETE DROP-IN
============================================================

Load this AFTER css/main.css.

This file intentionally:
- preserves the existing site's global typography and header styles
- keeps Team portraits at a controlled desktop size
- keeps stylist names in The Nautigal
- keeps role/subtitle text in Inter
- keeps desktop role tooltips
- hides role tooltips on mobile
- styles the native Education <dialog>
- provides the compact mobile navigation used by site-ui.js
- avoids jQuery / FancyBox

Do not add team.css back into main.css as an @import if team.html
already links to it separately.
============================================================
*/

:root {
    --team-accent: #e7b3b2;
    --team-accent-hover: #f5d4c7;
    --team-text: #000;
    --team-border: #e5e5e5;
    --team-max-width: 1180px;
    --team-photo-size: 280px;
}

/* ==========================================================
   PAGE
   ========================================================== */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-footer {
    flex-shrink: 0;
}

.gtm-noscript {
    display: none;
    visibility: hidden;
}

/* Preserve the space used below the existing header. */
.team-hero {
    margin: 0;
}

.team-hero .hero-banner {
    height: 120px;
}

/* ==========================================================
   INTRO
   ========================================================== */

.team-section {
    width: 100%;
}

.team-intro {
    text-align: center;
}

/*
Do not force a new heading font here.
The current site's .headline / h2 styling should remain in control.
*/
.team-intro h2 {
    margin: 0;
    padding: 0;
}

.team-intro p {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0;
    text-align: center;
}

/* ==========================================================
   TEAM LIST
   ========================================================== */

.team-list {
    width: min(calc(100% - 40px), var(--team-max-width));
    margin: 0 auto;
    padding: 0;
}

.team-card {
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);

    width: 100%;
    margin: 0;
    padding: 50px 0;

    border-bottom: 1px solid var(--team-border);
    box-sizing: border-box;
}

.team-card:last-child {
    border-bottom: 0;
}

/* ==========================================================
   PORTRAIT
   ========================================================== */

.team-card__photo {
    flex: 0 0 var(--team-photo-size);
    width: var(--team-photo-size);
    margin: 0;
    padding: 0;
    text-align: center;
}

.team-card__photo img {
    display: block;
    width: var(--team-photo-size);
    height: var(--team-photo-size);
    max-width: none;

    object-fit: cover;
    object-position: center 20%;

    border: 9px solid #fff;
    border-radius: 50%;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.1);

    box-sizing: border-box;
}

/* ==========================================================
   CONTENT
   ========================================================== */

.team-card__content {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.team-card__role-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 8px;
    padding: 0;
}

.team-card__role {
    margin: 0;
    padding: 0;

    font-family: "Inter", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;

    color: #000;
}

/*
Both parts of the stylist's name remain script.
Only the colour/weight changes between first and last name.
*/
.team-card__name {
    margin: 0;
    padding: 0;

    font-family: "The Nautigal", serif;
    font-size: 64px;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: 0;

    color: var(--team-accent);
}

.team-card__first-name,
.team-card__last-name {
    font-family: "The Nautigal", serif;
    font-size: inherit;
    line-height: inherit;
}

.team-card__first-name {
    color: var(--team-accent);
    font-weight: 400;
}

.team-card__last-name {
    color: #000;
    font-weight: 700;
}

.team-card__divider {
    display: block;

    width: 80px;
    height: 4px;

    margin: 18px 0 22px;

    background: var(--team-accent);
}

.team-card__bio {
    width: 100%;
    max-width: 760px;
    margin: 0;
    padding: 0;
}

.team-card__bio p {
    margin: 0;
    padding: 0;

    font-family: "Inter", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;

    color: #000;
}

.team-card__bio p + p {
    margin-top: 16px;
}

.team-card__actions {
    margin: 24px 0 0;
    padding: 0;
}

/* ==========================================================
   EDUCATION BUTTON
   ========================================================== */

.team-button {
    -webkit-appearance: none;
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    margin: 0;
    padding: 10px 16px;

    border: 1px solid #e6e6e6;
    border-radius: 8px;

    background: #fff;
    color: #333;

    font-family: "Inter", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.team-button:hover {
    background: var(--team-accent-hover);
    border-color: var(--team-accent-hover);
}

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

.team-button:focus-visible {
    outline: 3px solid var(--team-accent);
    outline-offset: 3px;
}

/* ==========================================================
   ROLE TOOLTIP — DESKTOP
   ========================================================== */

.team-tooltip {
    position: relative;

    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;
}

.team-tooltip__button {
    -webkit-appearance: none;
    appearance: none;

    display: inline-grid;
    place-items: center;

    width: 28px;
    height: 28px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #000;

    font-family: "Inter", serif;
    font-size: 16px;
    line-height: 1;

    cursor: help;
}

.team-tooltip__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.team-tooltip__content {
    position: absolute;
    z-index: 100;

    top: calc(100% + 10px);
    left: 50%;

    width: 245px;
    max-width: calc(100vw - 40px);

    padding: 10px 12px;

    visibility: hidden;
    opacity: 0;

    transform: translate(-50%, -4px);

    border-radius: 6px;

    background: #333;
    color: #fff;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

    font-family: "Inter", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    text-align: center;

    pointer-events: none;

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}

.team-tooltip__content::before {
    content: "";

    position: absolute;

    bottom: 100%;
    left: 50%;

    transform: translateX(-50%);

    border: 7px solid transparent;
    border-bottom-color: #333;
}

.team-tooltip:hover .team-tooltip__content,
.team-tooltip:focus-within .team-tooltip__content {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==========================================================
   EDUCATION DIALOG
   ========================================================== */

.team-dialog {
    width: min(760px, calc(100vw - 40px));
    max-width: 760px;
    max-height: 85vh;

    margin: auto;
    padding: 0;

    border: 0;
    border-radius: 18px;

    background: #fff;
    color: #000;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);

    overflow: hidden;
}

.team-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.team-dialog__panel {
    max-height: 85vh;

    margin: 0;
    padding: 0;

    overflow-y: auto;
    overscroll-behavior: contain;
}

.team-dialog__header {
    position: sticky;
    z-index: 2;
    top: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    align-items: center;
    gap: 20px;

    min-height: 100px;

    margin: 0;
    padding: 28px 32px;

    background: var(--team-accent);
    color: #fff;

    box-sizing: border-box;
}

.team-dialog__title {
    min-width: 0;

    margin: 0;
    padding: 0;

    font-family: "The Nautigal", serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;

    color: #fff;

    overflow-wrap: anywhere;
}

.team-dialog__close {
    -webkit-appearance: none;
    appearance: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0;
    /* padding: 0 0 3px; */
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
}

.team-dialog__close:hover {
    background: #fff;
    color: #000;
}

.team-dialog__close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.team-education-list {
    margin: 0;
    padding: 0;

    list-style: none;
}

.team-education-list li {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 14px;

    margin: 0;
    padding: 18px 32px;

    border-bottom: 1px solid var(--team-border);

    background: #fff;
    color: #000;

    font-family: "Inter", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;

    box-sizing: border-box;
}

.team-education-list li:last-child {
    border-bottom: 0;
}

.team-education-list li::before {
    content: "✓";

    color: var(--team-accent);

    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}

/* ==========================================================
   MOBILE MENU
   ========================================================== */

.site-mobile-menu {
    display: none;
}

@media only screen and (max-width: 800px) {

    /* Existing desktop navigation is not needed on mobile. */
    .head__wrapper .rgt-side {
        display: none;
    }

    /* Compact hamburger */
    #toggle.button_container {
        position: fixed;
        z-index: 1002;

        top: 22px;
        right: 18px;

        display: block;

        width: 34px;
        height: 28px;

        margin: 0;
        padding: 0;

        border: 0;

        background: transparent;

        cursor: pointer;
    }

    #toggle.button_container span {
        position: absolute;
        left: 0;

        display: block;

        width: 100%;
        height: 3px;

        margin: 0;
        padding: 0;

        border: 0;

        background: #000;

        transition:
            top 0.18s ease,
            transform 0.18s ease,
            opacity 0.18s ease;
    }

    #toggle .top {
        top: 2px;
    }

    #toggle .middle {
        top: 12px;
    }

    #toggle .bottom {
        top: 22px;
    }

    #toggle.is-open .top {
        top: 12px;
        transform: rotate(45deg);
    }

    #toggle.is-open .middle {
        opacity: 0;
    }

    #toggle.is-open .bottom {
        top: 12px;
        transform: rotate(-45deg);
    }

    #toggle:focus-visible {
        outline: 3px solid var(--team-accent);
        outline-offset: 5px;
    }

    .site-mobile-menu {
        position: fixed;
        z-index: 1001;

        top: 76px;
        right: 16px;

        display: grid;

        width: min(340px, calc(100vw - 32px));

        margin: 0;
        padding: 12px;

        visibility: hidden;
        opacity: 0;

        transform: translateY(-10px) scale(0.98);
        transform-origin: top right;

        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 16px;

        background: rgba(255, 255, 255, 0.92);

        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);

        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);

        pointer-events: none;

        box-sizing: border-box;

        transition:
            opacity 0.18s ease,
            transform 0.18s ease,
            visibility 0.18s ease;
    }

    .site-mobile-menu.is-open {
        visibility: visible;
        opacity: 1;

        transform: translateY(0) scale(1);

        pointer-events: auto;
    }

    .site-mobile-menu__link,
    .site-mobile-menu__book {
        display: flex;
        align-items: center;

        min-height: 48px;

        margin: 0;
        padding: 10px 14px;

        border-radius: 10px;

        color: #111;

        font-family: "Inter", serif;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;

        text-decoration: none;

        box-sizing: border-box;
    }

    .site-mobile-menu__link:hover,
    .site-mobile-menu__link:focus-visible {
        background: rgba(0, 0, 0, 0.045);
    }

    .site-mobile-menu__link.is-current {
        background: var(--team-accent-hover);
    }

    .site-mobile-menu__divider {
        height: 1px;

        margin: 8px 4px;

        background: var(--team-border);
    }

    .site-mobile-menu__book {
        justify-content: center;

        margin-top: 2px;

        background: var(--team-accent);

        text-align: center;
    }

    .site-mobile-menu__book:hover,
    .site-mobile-menu__book:focus-visible {
        background: var(--team-accent-hover);
    }

    /* ------------------------------------------------------
       MOBILE TEAM
       ------------------------------------------------------ */

    .team-hero .hero-banner {
        height: 90px;
    }

    .team-list {
        width: calc(100% - 32px);
    }

    .team-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 24px;

        padding: 34px 0;
    }

    .team-card__photo {
        flex: none;

        width: 100%;

        display: flex;
        justify-content: center;
    }

    .team-card__photo img {
        width: 200px;
        height: 200px;
        max-width: 200px;

        border-width: 8px;
    }

    .team-card__content {
        width: 100%;
    }

    .team-card__role-row {
        align-items: flex-start;
    }

    .team-card__role {
        font-size: 17px;
    }

    .team-card__name {
        font-size: 58px;
        line-height: 0.88;
    }

    /*
    Tooltip explanation is intentionally removed on mobile.
    The role text itself remains.
    */
    .team-tooltip {
        display: none;
    }

    /* ------------------------------------------------------
       MOBILE EDUCATION DIALOG
       ------------------------------------------------------ */

    .team-dialog {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);

        border-radius: 16px;
    }

    .team-dialog__panel {
        max-height: calc(100vh - 24px);
    }

    .team-dialog__header {
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 14px;

        min-height: 88px;

        padding: 22px 22px;
    }

    .team-dialog__title {
        font-size: 40px;
    }

    .team-dialog__close {
        width: 42px;
        height: 42px;

        font-size: 27px;
    }

    .team-education-list li {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 12px;

        padding: 16px 22px;

        font-size: 16px;
    }
}

/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media only screen and (max-width: 480px) {

    .team-list {
        width: calc(100% - 24px);
    }

    .team-card {
        padding: 28px 0;
    }

    .team-card__photo img {
        width: 180px;
        height: 180px;
        max-width: 180px;

        border-width: 7px;
    }

    .team-card__role {
        font-size: 16px;
    }

    .team-card__name {
        font-size: 54px;
    }

    .team-button {
        width: 100%;
    }

    .team-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);

        border-radius: 14px;
    }

    .team-dialog__panel {
        max-height: calc(100vh - 16px);
    }

    .team-dialog__header {
        grid-template-columns: minmax(0, 1fr) 40px;
        gap: 12px;

        min-height: 82px;

        padding: 18px 18px;
    }

    .team-dialog__title {
        font-size: 36px;
    }

    .team-dialog__close {
        width: 40px;
        height: 40px;

        font-size: 25px;
    }

    .team-education-list li {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;

        padding: 14px 18px;

        font-size: 15px;
    }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    .team-button,
    .team-tooltip__content,
    #toggle.button_container span,
    .site-mobile-menu {
        transition: none;
    }
}

/* ==========================================================
   MOBILE MENU — VISIBILITY FIX
   Keep this at the END of team.css
   ========================================================== */

@media only screen and (max-width: 800px) {

    #toggle.button_container {
        position: fixed !important;

        top: 24px !important;
        right: 24px !important;
        left: auto !important;

        z-index: 9999 !important;

        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 36px !important;
        height: 30px !important;

        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;

        cursor: pointer;
    }

    #toggle.button_container span {
        position: absolute !important;
        left: 0 !important;

        display: block !important;
        visibility: visible !important;
        opacity: 1;

        width: 36px !important;
        height: 3px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: #000 !important;
        border: 0 !important;
        border-radius: 2px;
    }

    #toggle.button_container .top {
        top: 2px !important;
    }

    #toggle.button_container .middle {
        top: 13px !important;
    }

    #toggle.button_container .bottom {
        top: 24px !important;
    }

    /* Hamburger → X */
    #toggle.button_container.is-open .top {
        top: 13px !important;
        transform: rotate(45deg);
    }

    #toggle.button_container.is-open .middle {
        opacity: 0 !important;
    }

    #toggle.button_container.is-open .bottom {
        top: 13px !important;
        transform: rotate(-45deg);
    }
}

/* Desktop: hamburger isn't needed */
@media only screen and (min-width: 801px) {

    #toggle.button_container,
    .site-mobile-menu {
        display: none !important;
    }
}