/* Design three: festival. Think Shambala / Green Gathering: hand-made, earthy-but-electric,
   poster typography, bunting, stickers and grain.
   Everything is scoped to body.theme-festival, so the other designs are untouched.
   Delete this file and the chooser to retire the experiment. */

@font-face {
    font-family: "Anton";
    src: url("../fonts/anton.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Permanent Marker";
    src: url("../fonts/permanent-marker.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}

body.theme-festival {
    --ink: #14180f;
    --cream: #f3ead6;
    --accent: #ff6b2c;
    --accent-dark: #d4501a;
    --marigold: #ffbf3c;
    --pink: #ff4f8b;
    --moss: #5f9b4f;
    --paper: var(--ink);
    --font-display: "Anton", Impact, sans-serif;
    --font-marker: "Permanent Marker", cursive;
    --bs-body-font-family: "Space Grotesk", system-ui, sans-serif;
    /* Re-declared here because :root computed these from the classic colours. */
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--cream);
    --bs-secondary-color: rgba(20, 24, 15, .68);
    --bs-link-color: var(--accent-dark);
    --bs-link-hover-color: var(--ink);
    --bs-link-color-rgb: 212, 80, 26;
    --bs-link-hover-color-rgb: 20, 24, 15;
    --bunting-h: 2.6rem;
    font-size: 1.05rem;
}

/* Paper grain over everything */
.theme-festival::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1070;
    pointer-events: none;
    opacity: .14;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Type: tall poster headlines */
.theme-festival h1,
.theme-festival h2,
.theme-festival h3,
.theme-festival h4,
.theme-festival .navbar-brand,
.theme-festival .offcanvas-title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1;
}

.theme-festival h2.section-title {
    letter-spacing: .02em;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
}

/* Heading divider: hazard-style stripes */
.theme-festival h2.section-title::after {
    -webkit-mask: none;
    mask: none;
    width: 5rem;
    height: .6rem;
    border-radius: 0;
    background: repeating-linear-gradient(135deg, var(--accent) 0 .5rem, var(--marigold) .5rem 1rem);
}

/* Buttons: chunky, outlined, hard-shadowed */
.theme-festival .btn-accent,
.theme-festival .btn-outline-light,
.theme-festival .btn.rounded-0 {
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1rem;
    font-weight: 700;
    border-width: 3px;
    padding-inline: 1.5rem;
    transition: transform .12s, box-shadow .12s, background-color .12s;
}

.theme-festival .btn-accent {
    --bs-btn-color: var(--ink);
    --bs-btn-bg: var(--marigold);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-bg: var(--accent);
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-bg: var(--accent);
    --bs-btn-active-border-color: var(--ink);
    box-shadow: .3rem .3rem 0 var(--pink);
}

.theme-festival .btn-accent:hover { transform: translate(.15rem, .15rem); box-shadow: .15rem .15rem 0 var(--pink); }
.theme-festival .btn-accent:active { transform: translate(.3rem, .3rem); box-shadow: 0 0 0 var(--pink); }

.theme-festival .btn-outline-light { --bs-btn-border-color: var(--cream); color: var(--cream); }
.theme-festival .btn-outline-light:hover { background: var(--cream); color: var(--ink); }

.theme-festival .btn-outline-dark {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-color: var(--cream);
    --bs-btn-active-bg: var(--ink);
    --bs-btn-active-color: var(--cream);
}

/* Navigation */
.theme-festival .site-nav .navbar-brand { font-size: 1.7rem; letter-spacing: .04em; }
.theme-festival .site-nav .nav-link {
    font-family: var(--bs-body-font-family);
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .85rem;
}

.theme-festival .site-nav .nav-link:hover { color: var(--marigold); }
.theme-festival .site-nav .nav-link.active {
    color: var(--marigold);
    text-decoration: underline wavy var(--pink);
    text-decoration-thickness: 2px;
    text-underline-offset: .4rem;
}

.theme-festival .logo-mark { color: var(--marigold); }
.theme-festival.no-hero .site-nav,
.theme-festival .site-nav.scrolled {
    background-color: var(--ink);
    box-shadow: 0 .25rem 0 var(--accent);
}

.theme-festival .site-nav .offcanvas { background-color: var(--ink); }

@media (max-width: 991.98px) {
    .theme-festival.has-hero .site-nav:not(.scrolled) { background-color: rgba(20, 24, 15, .55); }
    .theme-festival .site-nav .nav-link {
        font-family: var(--font-display);
        font-weight: 400;
        font-size: 2rem;
        letter-spacing: .03em;
        border-bottom: 0;
        padding: .4rem 0;
    }
}

/* Bunting: coloured pennants hanging from a string along the bottom edge of the hero and banners,
   and the top edge of the footer. Four stacked layers give a repeating four-colour pattern. */
.theme-festival .hero,
.theme-festival .page-banner,
.theme-festival .site-footer { position: relative; }

.theme-festival .hero::after,
.theme-festival .page-banner::after,
.theme-festival .site-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: var(--bunting-h);
    z-index: 2;
    pointer-events: none;
    border-top: 3px solid var(--ink);
    background:
        conic-gradient(from 150deg at 12.5% 0, var(--accent) 60deg, transparent 0) 0 0 / 12rem 100% repeat-x,
        conic-gradient(from 150deg at 37.5% 0, var(--marigold) 60deg, transparent 0) 0 0 / 12rem 100% repeat-x,
        conic-gradient(from 150deg at 62.5% 0, var(--pink) 60deg, transparent 0) 0 0 / 12rem 100% repeat-x,
        conic-gradient(from 150deg at 87.5% 0, var(--moss) 60deg, transparent 0) 0 0 / 12rem 100% repeat-x;
}

.theme-festival .hero::after,
.theme-festival .page-banner::after { bottom: calc(var(--bunting-h) * -1); }
.theme-festival .site-footer::before { top: 0; }
.theme-festival .site-footer { padding-top: var(--bunting-h); }

/* Hero, banners and call-to-action band: sunset wash over the photo */
.theme-festival .hero::before {
    background: linear-gradient(180deg, rgba(20, 24, 15, .35) 0%, rgba(255, 79, 139, .3) 60%, rgba(255, 107, 44, .5) 100%);
}

.theme-festival .hero-dots [data-bs-target] { border-radius: 0; width: 1.4rem; height: .4rem; }

.theme-festival .hero h1 {
    font-size: clamp(3.4rem, 14vw, 9.5rem);
    line-height: .88;
    letter-spacing: .01em;
    color: var(--cream);
    text-shadow: .05em .05em 0 var(--pink);
}

.theme-festival .hero .lead { letter-spacing: .01em; font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 500; }

/* Small "Bristol & the South West" tag: hand-marker on a yellow label, kept straight */
.theme-festival .hero p.text-uppercase {
    display: inline-block;
    text-transform: none !important;
    letter-spacing: .02em;
    font-family: var(--font-marker);
    font-size: 1.25rem;
    padding: .35rem 1.1rem;
    background: var(--marigold);
    color: var(--ink);
    border: 3px solid var(--ink);
}

.theme-festival .page-banner {
    padding-bottom: 5rem;
    background:
        linear-gradient(180deg, rgba(20, 24, 15, .5), rgba(255, 79, 139, .35)),
        var(--hero-img, none) center / cover var(--ink);
}

.theme-festival .page-banner h1 {
    font-size: clamp(3rem, 11vw, 6.5rem);
    line-height: .9;
    letter-spacing: .01em;
    text-shadow: .05em .05em 0 var(--pink);
}

.theme-festival .cta-band {
    background:
        linear-gradient(135deg, rgba(20, 24, 15, .78), rgba(255, 79, 139, .45) 70%, rgba(255, 107, 44, .6)),
        var(--hero-img) center / cover fixed;
}

.theme-festival .cta-band h2 { font-size: clamp(2.4rem, 8vw, 5rem); text-shadow: .05em .05em 0 var(--pink); }

/* Sections: alternate cream and dark forest */
.theme-festival .section { padding: 6rem 0 5rem; }
.theme-festival .section-alt { background: var(--ink); color: var(--cream); }
.theme-festival .section-alt a:not(.btn) { color: var(--marigold); }
.theme-festival .section-alt a:not(.btn):hover { color: var(--pink); }
.theme-festival .section-alt .text-muted { color: rgba(243, 234, 214, .68) !important; }
.theme-festival .section-alt h2.section-title { color: var(--cream); }

/* Home-page cards: taped-up posters, each with a different colour of shadow */
.theme-festival .img-card {
    border: 4px solid var(--ink);
    border-radius: 0;
    box-shadow: .6rem .6rem 0 var(--pink);
    transition: transform .2s, box-shadow .2s;
}

.theme-festival .section-alt .img-card { border-color: var(--cream); }
.theme-festival .col-md-4:nth-child(1) .img-card { transform: rotate(-1.2deg); }
.theme-festival .col-md-4:nth-child(2) .img-card { transform: rotate(.8deg); box-shadow: .6rem .6rem 0 var(--marigold); }
.theme-festival .col-md-4:nth-child(3) .img-card { transform: rotate(-.5deg); box-shadow: .6rem .6rem 0 var(--moss); }
.theme-festival .img-card:hover { transform: rotate(0) translate(-.2rem, -.3rem); box-shadow: 1rem 1rem 0 var(--accent); }

.theme-festival .img-card .caption {
    inset: auto auto 1.1rem 1.1rem;
    padding: .35rem .9rem;
    background: var(--marigold);
    border: 3px solid var(--ink);
    text-align: left;
}

.theme-festival .img-card h3 { font-size: 1.7rem; letter-spacing: .03em; color: var(--ink); }

.theme-festival .feature-img { border: 4px solid var(--ink); border-radius: 0; }
.theme-festival .section-alt .feature-img { border-color: var(--cream); }
.theme-festival .ratio iframe { border: 4px solid var(--ink); }

/* Gallery */
.theme-festival .gallery-grid { gap: .6rem; }
.theme-festival .gallery-grid a { border: 3px solid var(--ink); transition: transform .2s, box-shadow .2s; }
.theme-festival .gallery-grid a:hover { transform: rotate(-1.5deg) scale(1.03); box-shadow: .4rem .4rem 0 var(--pink); z-index: 1; position: relative; }

/* Prices and boxes */
.theme-festival .price-card {
    border: 4px solid var(--ink);
    border-radius: 0;
    background: #fffaf0;
    box-shadow: .7rem .7rem 0 var(--accent);
}

.theme-festival .col-md-6:nth-child(2) .price-card { box-shadow: .7rem .7rem 0 var(--pink); }
.theme-festival .price-card .price { color: var(--accent-dark); font-family: var(--font-display); font-size: 3.6rem; line-height: 1; }
.theme-festival .price-card h2 { font-size: 1.6rem; }
.theme-festival .border { border: 3px solid var(--ink) !important; border-radius: 0; background: #fffaf0; }

/* Forms */
.theme-festival .form-control {
    border: 3px solid var(--ink);
    border-radius: 0;
    background: #fffaf0;
    padding: .7rem 1rem;
}

.theme-festival .form-control:focus { border-color: var(--ink); box-shadow: .3rem .3rem 0 var(--accent); }
.theme-festival .form-label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.theme-festival .alert { border: 3px solid var(--ink); border-radius: 0; }

/* Footer */
.theme-festival .site-footer { background: var(--ink); }
.theme-festival .site-footer h2 { font-size: 1.5rem; }
.theme-festival .site-footer a:hover { color: var(--marigold); }
