/* Tandblekarna – design för hela sajten (sidhuvud, sidfot, mobilknapp, övergångar, undersidor) */
:root { --tb-ink: #111; --tb-line: #e6e4df; --tb-band: #f6f5f2; --tb-muted: #4a4a4a; }

/* ---------- Sidhuvud som följer med och krymper ---------- */
#masthead { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 99; background: #fff; transition: box-shadow .2s ease; }
body.tb-scrolled #masthead { box-shadow: 0 1px 0 var(--tb-line), 0 6px 20px rgba(0,0,0,.04); }
#masthead .ast-primary-header-bar, #masthead .site-primary-header-wrap, #masthead .ast-builder-grid-row { transition: min-height .2s ease, padding .2s ease; }
#masthead .custom-logo { transition: max-height .2s ease; }
body.tb-scrolled #masthead .custom-logo { max-height: 26px !important; }
body.tb-scrolled #masthead .site-primary-header-wrap { min-height: 60px !important; }
@media (max-width: 600px) { #masthead { top: 0; } }

/* ---------- Egen sidfot (ersätter temats) ---------- */
.site-footer { display: none !important; }
.tb-footer { background: var(--tb-ink); color: #b5b5b5; font-size: 15px; line-height: 1.6; }
.tb-footer a { color: #e2e2e2; text-decoration: none; transition: color .15s ease; }
.tb-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tb-footer-inner { max-width: 1200px; margin: 0 auto; padding: 72px 32px 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.tb-footer-brand p { margin: 20px 0 0; max-width: 26em; }
.tb-footer-logo { width: 150px; height: auto; display: block; }
.tb-footer-name { color: #fff; font-size: 20px; letter-spacing: .2em; text-transform: uppercase; }
.tb-footer-col { display: flex; flex-direction: column; gap: 10px; }
.tb-footer-title { margin: 0 0 6px; color: #fff; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.tb-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 22px 32px 28px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 13px; }
.tb-footer-legal { display: flex; gap: 20px; }
@media (max-width: 900px) { .tb-footer-inner { grid-template-columns: 1fr 1fr; } .tb-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tb-footer-inner { grid-template-columns: 1fr; padding: 56px 20px 32px; gap: 32px; } .tb-footer-bottom { padding: 20px 20px 96px; } }

/* ---------- Fast "Boka tid" på mobilen ---------- */
.tb-sticky-cta { display: none; }
@media (max-width: 767px) {
    .tb-sticky-cta {
        display: block; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 98;
        background: #1f1f1f; color: #fff !important; text-align: center; text-decoration: none; font-weight: 500; letter-spacing: .02em;
        padding: 15px 20px; box-shadow: 0 8px 24px rgba(0,0,0,.18); transform: translateY(140%); transition: transform .25s ease, background-color .15s ease;
    }
    body.tb-show-cta .tb-sticky-cta { transform: translateY(0); }
    .tb-sticky-cta:active { background: #4a4a4a; }
    #ast-scroll-top { bottom: 84px !important; }
}

/* ---------- Mjuka övergångar ---------- */
.tb-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.tb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .tb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    #masthead, .tb-sticky-cta { transition: none !important; }
}

/* ---------- Undersidor: rubrikbanderoll ---------- */
.page:not(.elementor-page):not(.home) .entry-header { position: relative; padding: 64px 0 36px; margin-bottom: 44px; }
.page:not(.elementor-page):not(.home) .entry-header::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--tb-band); z-index: -1; }
.page:not(.elementor-page):not(.home) .entry-header .entry-title { margin: 0; }
.page:not(.elementor-page):not(.home) .entry-header .tb-eyebrow-sub { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: #5c5c5c; font-family: inherit; }
.page:not(.elementor-page) .site-content > .ast-container { overflow-x: clip; }
.page:not(.elementor-page) #primary { margin-top: 0 !important; }

/* Bokningssidan: formulär + sidoruta */
.tb-book-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 56px; align-items: start; }
.tb-book-aside { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px); border: 1px solid var(--tb-line); background: #fff; }
.tb-book-aside img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; display: block; background: #f4f3f0; }
.tb-book-aside-body { padding: 22px 22px 24px; }
.tb-book-aside .tb-aside-name { margin: 0; font-weight: 500; }
.tb-book-aside .tb-aside-role { margin: 0 0 18px; color: #5c5c5c; font-size: 14px; }
.tb-book-aside dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 18px; padding: 16px 0; border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); font-size: 15px; }
.tb-book-aside dt { color: #4a4a4a; } .tb-book-aside dd { margin: 0; text-align: right; }
.tb-book-aside ul { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #4a4a4a; display: grid; gap: 8px; }
.tb-book-aside li { padding-left: 20px; position: relative; }
.tb-book-aside li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: var(--tb-ink); }
@media (max-width: 1100px) { .tb-book-layout { grid-template-columns: 1fr; } .tb-book-aside { display: none; } }
