/*
Theme Name: Stagebound
Theme URI: https://stagebound.co.uk
Author: Mako Digital
Author URI: https://makodigital.co.uk
Description: Bespoke WordPress theme for Stagebound — youth talent competition, Wigan.
Version: 1.0.0
Text Domain: stagebound
*/

/* ============================================================
   GLOBAL TOKENS — palette, fonts, breakpoints
   ============================================================ */
:root {
    /* Brand palette */
    --sb-blue:    #1a5cea;
    --sb-blue-dk: #241d9a;
    --sb-pink:    #f75092;
    --sb-red:     #e42121;
    --sb-ink:     #0A0A14;
    --sb-paper:   #F5F5FA;
    --sb-muted:   rgba(245, 245, 250, 0.7);
    --sb-line:    rgba(255, 255, 255, 0.12);

    /* Type stack */
    --f-display: 'Anton', 'Impact', sans-serif;
    --f-body:    'Source Serif 4', Georgia, serif;
    --f-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Layout */
    --hdr-pad: 16px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--sb-paper);
    background: var(--sb-ink);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--sb-pink);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--sb-paper); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-display);
    font-weight: 400;
    line-height: 1;
    color: var(--sb-paper);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

p { margin-bottom: 1rem; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   RESPONSIVE CONTAINER — used everywhere
   ============================================================ */
.sb-wrap {
    width: 100%;
    margin-inline: auto;
    padding-inline: 16px;
}
@media (min-width: 480px)  { .sb-wrap { padding-inline: 20px; } }
@media (min-width: 768px)  { .sb-wrap { padding-inline: 28px; max-width: 720px; } }
@media (min-width: 1024px) { .sb-wrap { padding-inline: 36px; max-width: 960px; } }
@media (min-width: 1280px) { .sb-wrap { max-width: 1200px; } }
@media (min-width: 1536px) { .sb-wrap { max-width: 1400px; } }
@media (min-width: 1920px) { .sb-wrap { max-width: 1640px; } }

/* Header styles live in header.php */

/* ============================================================
   SITE FOOTER — dark
   ============================================================ */
.site-footer {
    background: rgba(10, 10, 20, 0.95);
    color: var(--sb-paper);
    padding: 64px 0 0;
    margin-top: 0;
    border-top: 1px solid var(--sb-line);
}
.site-footer h4 {
    color: var(--sb-pink);
    font-family: var(--f-ui);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid p, .footer-grid li, .footer-grid a {
    color: rgba(245, 245, 250, 0.7);
    font-family: var(--f-ui);
    font-size: 0.92rem;
    line-height: 1.8;
}
.footer-grid a:hover { color: var(--sb-pink); }

.footer-brand .logo {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--sb-paper);
    margin-bottom: 14px;
    display: inline-block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.footer-socials { display: flex; gap: 12px; margin-top: 16px; }
.footer-socials a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(245, 245, 250, 0.2);
    border-radius: 50%;
    color: var(--sb-paper);
    transition: all .2s ease;
}
.footer-socials a:hover {
    background: var(--sb-pink);
    border-color: var(--sb-pink);
    color: var(--sb-ink);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--f-ui);
    font-size: 0.85rem;
    color: rgba(245, 245, 250, 0.55);
}
.footer-bottom a { color: rgba(245, 245, 250, 0.75); }
.footer-bottom a:hover { color: var(--sb-pink); }

/* ============================================================
   COOKIE BAR
   ============================================================ */
.cookie-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 560px;
    margin: 0 auto;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    color: var(--sb-paper);
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    display: none;
    z-index: 999;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--sb-pink);
    font-family: var(--f-ui);
}
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: 0.88rem; flex: 1; }
.cookie-bar a { color: var(--sb-pink); text-decoration: underline; }
.cookie-bar button {
    background: var(--sb-pink);
    color: var(--sb-ink);
    border: 0;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--f-ui);
    font-size: 0.85rem;
}
.cookie-bar button:hover { background: var(--sb-paper); }

@media (max-width: 600px) {
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}