/* Ana Terra Tattoo | Mobile Home support v1.4.0
   Mobile header and FAQ only. Ritual now uses the unified horizontal implementation. */

.att-mobile-header-v13,
.att-mobile-nav-v13,
.att-mobile-faq-v13 {
    display: none;
}

@media (max-width: 767px) {
    /* Disable the legacy mobile implementations entirely. */
    .att-site-header,
    .att-story-gallery,
    .att-faq {
        display: none !important;
    }

    /* HERO: keep the approved static banner untouched. */
    .att-hero-media::after {
        background: none !important;
    }

    .att-hero-copy,
    .att-hero-mobile-foreground {
        display: none !important;
    }

    /* ---------------------------------------------------------
       MOBILE HEADER v13
       At the top the embedded visual header remains visible.
       Real controls are transparent but clickable. After scrolling,
       the rebuilt header becomes a normal fixed navigation bar.
       --------------------------------------------------------- */
    .att-mobile-header-v13 {
        position: fixed;
        z-index: 5000;
        inset: 0 0 auto 0;
        height: 76px;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: var(--att-earth);
        background: rgba(255,249,239,.97);
        border-bottom: 1px solid rgba(58,33,26,.08);
        box-shadow: 0 8px 24px rgba(58,33,26,.06);
        transition: background-color .22s ease, color .22s ease, box-shadow .22s ease, border-color .22s ease;
    }

    .att-mobile-header-v13.is-at-top {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .att-mobile-header-wordmark-v13 {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 152px;
        min-height: 54px;
        color: inherit;
        text-decoration: none;
        font-family: var(--att-font-display);
        line-height: 1;
        transition: opacity .2s ease;
    }

    .att-mobile-header-wordmark-v13 span {
        font-size: 24px;
        letter-spacing: .12em;
    }

    .att-mobile-header-wordmark-v13 small {
        font-family: var(--att-font-body);
        font-size: 7px;
        letter-spacing: .42em;
    }

    .att-mobile-menu-toggle-v13 {
        position: relative;
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: inherit;
        box-shadow: none;
        cursor: pointer;
        transition: opacity .2s ease;
    }

    .att-mobile-menu-toggle-v13 span {
        position: absolute;
        left: 10px;
        width: 32px;
        height: 1.5px;
        background: currentColor;
        transition: transform .22s ease, top .22s ease;
    }

    .att-mobile-menu-toggle-v13 span:first-child { top: 20px; }
    .att-mobile-menu-toggle-v13 span:last-child { top: 31px; }

    .att-mobile-header-v13.is-at-top .att-mobile-header-wordmark-v13,
    .att-mobile-header-v13.is-at-top .att-mobile-menu-toggle-v13 {
        opacity: 0;
    }

    .att-mobile-header-v13.is-menu-open {
        color: var(--att-ivory);
        background: var(--att-earth);
        border-color: transparent;
        box-shadow: none;
    }

    .att-mobile-header-v13.is-menu-open .att-mobile-header-wordmark-v13,
    .att-mobile-header-v13.is-menu-open .att-mobile-menu-toggle-v13 {
        opacity: 1;
    }

    .att-mobile-header-v13.is-menu-open .att-mobile-menu-toggle-v13 span:first-child {
        top: 26px;
        transform: rotate(45deg);
    }

    .att-mobile-header-v13.is-menu-open .att-mobile-menu-toggle-v13 span:last-child {
        top: 26px;
        transform: rotate(-45deg);
    }

    .att-mobile-nav-v13 {
        position: fixed;
        z-index: 4990;
        inset: 0;
        padding: 112px 24px 44px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 18px;
        background: var(--att-earth);
        color: var(--att-ivory);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }

    .att-mobile-nav-v13.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .att-mobile-nav-v13 a {
        color: inherit;
        text-decoration: none;
        font-family: var(--att-font-display);
        font-size: clamp(34px, 10vw, 48px);
        font-weight: 400;
        line-height: 1;
    }

    /* ---------------------------------------------------------
       MOBILE FAQ v13
       Entirely separate from the legacy accordion.
       --------------------------------------------------------- */
    .att-mobile-faq-v13 {
        display: block;
        width: 100%;
        overflow: hidden;
        padding: 92px 0;
        background: #f8f1e7;
        color: var(--att-earth);
    }

    .att-mobile-faq-inner-v13 {
        width: min(calc(100% - 36px), 440px);
        margin: 0 auto;
    }

    .att-mobile-faq-inner-v13 header {
        margin-bottom: 34px;
        text-align: center;
    }

    .att-mobile-faq-inner-v13 header > span {
        display: block;
        margin-bottom: 12px;
        color: var(--att-gold);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: .25em;
    }

    .att-mobile-faq-inner-v13 h2 {
        max-width: 100%;
        margin: 0;
        color: var(--att-earth);
        font-family: var(--att-font-display);
        font-size: clamp(40px, 11vw, 52px);
        font-weight: 400;
        line-height: .94;
        letter-spacing: -.03em;
        overflow-wrap: normal;
        word-break: normal;
    }

    .att-mobile-faq-list-v13 {
        border-top: 1px solid rgba(58,33,26,.16);
    }

    .att-mobile-faq-item-v13 {
        border-bottom: 1px solid rgba(58,33,26,.16);
    }

    .att-mobile-faq-item-v13 button {
        width: 100%;
        min-height: 72px;
        margin: 0;
        padding: 17px 2px;
        display: grid;
        grid-template-columns: minmax(0,1fr) 30px;
        gap: 10px;
        align-items: center;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: var(--att-earth);
        box-shadow: none;
        text-align: left;
    }

    .att-mobile-faq-item-v13 button span {
        min-width: 0;
        color: var(--att-earth);
        font-family: var(--att-font-display);
        font-size: clamp(21px, 5.8vw, 27px);
        line-height: 1.08;
        overflow-wrap: break-word;
    }

    .att-mobile-faq-item-v13 button i {
        font-style: normal;
        color: var(--att-gold);
        font-size: 27px;
        text-align: center;
        transition: transform .2s ease;
    }

    .att-mobile-faq-item-v13.is-open button i { transform: rotate(45deg); }

    .att-mobile-faq-answer-v13 {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows .24s ease;
    }

    .att-mobile-faq-answer-v13 p {
        min-height: 0;
        overflow: hidden;
        margin: 0;
        color: var(--att-muted);
        font-size: 14px;
        line-height: 1.58;
        text-align: left;
    }

    .att-mobile-faq-item-v13.is-open .att-mobile-faq-answer-v13 {
        grid-template-rows: 1fr;
    }

    .att-mobile-faq-item-v13.is-open .att-mobile-faq-answer-v13 p {
        padding: 0 2px 18px;
    }
}


@media (prefers-reduced-motion: reduce) {
    .att-mobile-header-v13,
    .att-mobile-nav-v13,
    .att-mobile-faq-answer-v13,
    .att-mobile-faq-item-v13 button i {
        transition: none !important;
    }
}
