/* ── CSS Custom Properties (overridden by customizer inline CSS) ── */
:root {
    --bty-bg:      #2c3e50;
    --bty-surface: #34495e;
    --bty-accent:  #3498db;
    --bty-green:   #2ecc71;
    --bty-red:     #e74c3c;
    --bty-gold:    #f1c40f;

    --bty-text:        #ecf0f1;
    --bty-text-muted:  #95a5a6;
    --bty-border:      rgba(255,255,255,0.1);
    --bty-shadow:      0 4px 16px rgba(0,0,0,0.4);

    --bty-radius:  10px;
    --bty-header-h: 60px;
    --bty-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Global ─────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: var(--bty-font);
    background-color: var(--bty-bg);
    color: var(--bty-text);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

a { color: var(--bty-accent); }
a:hover { color: var(--bty-text); }

/* Let WooCommerce checkout manage its own link colours */
.woocommerce-checkout a { color: inherit; }
.woocommerce-checkout a:hover { color: inherit; }

/* ── Header ─────────────────────────────────────────────────────── */
.bty-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 37, 47, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bty-border);
    height: var(--bty-header-h);
}

.bty-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

.bty-header__brand { flex-shrink: 0; }

.bty-header__logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bty-text);
    letter-spacing: -0.02em;
}

.bty-header__logo-text:hover { color: var(--bty-accent); }

.bty-header__brand .custom-logo {
    height: 40px;
    width: auto;
}

.bty-header__nav { flex: 1; }

.bty-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bty-nav-menu a {
    display: block;
    padding: 6px 14px;
    color: var(--bty-text-muted);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s, background 0.15s;
}

.bty-nav-menu a:hover,
.bty-nav-menu .current-menu-item > a {
    color: var(--bty-text);
    background: rgba(255,255,255,0.08);
}

/* ── Hamburger ──────────────────────────────────────────────────── */
.bty-header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
}

.bty-header__hamburger span {
    display: block;
    height: 2px;
    background: var(--bty-text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* ── Mobile Nav ─────────────────────────────────────────────────── */
.bty-mobile-nav {
    background: rgba(26, 37, 47, 0.98);
    border-top: 1px solid var(--bty-border);
    padding: 12px 20px;
}

.bty-mobile-nav[hidden] { display: none; }

.bty-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bty-mobile-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--bty-text-muted);
    border-radius: var(--bty-radius);
    font-size: 0.95rem;
}

.bty-mobile-menu a:hover { color: var(--bty-text); background: rgba(255,255,255,0.07); }

/* ── Main Content ───────────────────────────────────────────────── */
.bty-main { flex: 1; }

.bty-content-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* ── Page / Post Titles ─────────────────────────────────────────── */
.bty-page__header,
.bty-post-card__header { margin-bottom: 16px; }

.bty-page__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--bty-text);
}

.bty-post-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.bty-post-card__title a { color: var(--bty-text); }
.bty-post-card__title a:hover { color: var(--bty-accent); }

.bty-post-card__meta {
    font-size: 0.8rem;
    color: var(--bty-text-muted);
    margin-top: 4px;
}

/* ── Post Card ──────────────────────────────────────────────────── */
.bty-post-card {
    background: var(--bty-surface);
    border: 1px solid var(--bty-border);
    border-radius: var(--bty-radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.15s;
}

.bty-post-card:hover { box-shadow: var(--bty-shadow); }

.bty-post-card__excerpt { color: var(--bty-text-muted); font-size: 0.95rem; }

/* ── Page Content (WordPress blocks / shortcodes) ───────────────── */
.bty-page__content { color: var(--bty-text); }

.bty-page__content h1,
.bty-page__content h2,
.bty-page__content h3 { color: var(--bty-text); }

.bty-page__content p { color: var(--bty-text-muted); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.bty-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--bty-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s, transform 0.1s;
    text-decoration: none;
}

.bty-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.bty-btn:active { transform: translateY(0); }

.bty-btn--primary { background: var(--bty-accent); color: #fff; }
.bty-btn--green   { background: var(--bty-green);  color: #fff; }
.bty-btn--red     { background: var(--bty-red);    color: #fff; }
.bty-btn--gold    { background: var(--bty-gold);   color: #1a252f; }
.bty-btn--outline {
    background: transparent;
    border: 1px solid var(--bty-border);
    color: var(--bty-text);
}

/* ── Notice ─────────────────────────────────────────────────────── */
.bty-notice {
    background: var(--bty-surface);
    border: 1px solid var(--bty-border);
    border-radius: var(--bty-radius);
    padding: 24px;
    text-align: center;
    color: var(--bty-text-muted);
}

/* ── 404 ─────────────────────────────────────────────────────────── */
.bty-404 { display: flex; align-items: center; justify-content: center; min-height: 60vh; }

.bty-404__inner {
    text-align: center;
    max-width: 480px;
}

.bty-404__icon { font-size: 4rem; margin-bottom: 16px; }

.bty-404__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--bty-text);
}

.bty-404__msg {
    color: var(--bty-text-muted);
    margin-bottom: 28px;
}

/* ── Pagination ─────────────────────────────────────────────────── */
.bty-pagination { margin-top: 32px; text-align: center; }

.bty-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.bty-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--bty-surface);
    color: var(--bty-text-muted);
    border: 1px solid var(--bty-border);
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.bty-pagination .page-numbers:hover,
.bty-pagination .page-numbers.current {
    background: var(--bty-accent);
    color: #fff;
    border-color: var(--bty-accent);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.bty-footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--bty-border);
    padding: 40px 20px 24px;
    margin-top: auto;
}

.bty-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: start;
    gap: 32px;
}

.bty-footer__logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bty-text);
    display: block;
    margin-bottom: 6px;
}

.bty-footer__tagline {
    color: var(--bty-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.bty-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bty-footer-menu a {
    color: var(--bty-text-muted);
    font-size: 0.85rem;
}

.bty-footer-menu a:hover { color: var(--bty-text); }

.bty-footer__meta { text-align: right; }

.bty-footer__copy {
    color: var(--bty-text-muted);
    font-size: 0.8rem;
    margin: 0 0 10px;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bty-header__nav { display: none; }
    .bty-header__hamburger { display: flex; }

    .bty-footer__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bty-footer__meta { text-align: left; }

    .bty-content-wrap { padding: 20px 16px; }
}

/* ── Safe area insets (iPhone notch / home indicator) ───────────── */
@supports (padding: env(safe-area-inset-bottom)) {
    .bty-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
    .bty-header { padding-top: env(safe-area-inset-top); height: calc(var(--bty-header-h) + env(safe-area-inset-top)); }
}

/* ── WordPress core compatibility ───────────────────────────────── */
.alignnone  { margin: 0; }
.aligncenter { display: block; margin: 16px auto; }
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption  { max-width: 100%; }
.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}