:root {
    --ink: #22292d;
    --accent: #b08d57;
    --accent-dark: #8f7142;
    --paper: #faf8f4;
    --bs-body-color: var(--ink);
    --bs-link-color: var(--accent-dark);
    --bs-link-hover-color: var(--ink);
    /* Bootstrap's `a` rule reads these RGB triplets, not the colours above. Each design sets its own. */
    --bs-link-color-rgb: 143, 113, 66;
    --bs-link-hover-color-rgb: 34, 41, 45;
    --font-display: Georgia, "Times New Roman", serif;
}

h1, h2, h3, h4, .navbar-brand, .offcanvas-title {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: .04em;
}

h2.section-title {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

/* Logo mark (inline SVG, inherits text colour) */
.logo-mark { width: 2rem; height: auto; color: var(--accent); flex-shrink: 0; }
.logo-mark-lg { width: 2.6rem; }
/* The festival-family designs share the big-top mark; classic and modern show the original. */
.logo-mark--festival { display: none; }
.theme-festival .logo-mark--classic,
.theme-woodland .logo-mark--classic,
.theme-canopy .logo-mark--classic { display: none; }
.theme-festival .logo-mark--festival,
.theme-woodland .logo-mark--festival,
.theme-canopy .logo-mark--festival { display: inline; }

/* Section heading divider: the logo mark, tinted with the accent colour via a mask */
h2.section-title::after {
    content: "";
    display: block;
    width: 2.6rem;
    height: 1.6rem;
    margin: 1rem auto 0;
    background: var(--accent);
    -webkit-mask: url('../img/logo-mark.svg') center / contain no-repeat;
    mask: url('../img/logo-mark.svg') center / contain no-repeat;
}

h2.section-title.text-start::after { margin-left: 0; }

/* Buttons */
.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--accent-dark);
    --bs-btn-hover-border-color: var(--accent-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--accent-dark);
    --bs-btn-active-border-color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
    border-radius: 0;
}

.btn-outline-light {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
}

/* Navbar: transparent over a hero, solid elsewhere or once scrolled */
.site-nav { transition: background-color .3s, box-shadow .3s; }
.site-nav .navbar-brand { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .15em; }
.site-nav .nav-link { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.site-nav .nav-link.active { color: var(--accent); }
.no-hero .site-nav,
.site-nav.scrolled { background-color: rgba(34, 41, 45, .96); box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.has-hero .site-nav:not(.scrolled) { background-color: transparent; }
.site-nav .offcanvas { background-color: var(--ink); }

@media (max-width: 991.98px) {
    .site-nav .nav-link { font-size: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
    .has-hero .site-nav:not(.scrolled) { background-color: rgba(34, 41, 45, .35); }
}

/* Hero images: pages set --hero-img inline. A url() inside a custom property resolves relative to
   this stylesheet, so pages use '../img/...' rather than 'assets/img/...'. */

/* Full-screen hero */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    background: var(--ink);
}

/* Hero layers, back to front: photo carousel, colour wash (::before, set per design), text, slide dots. */
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item { height: 100%; }
.hero-carousel img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(20, 24, 26, .45), rgba(20, 24, 26, .55));
}
.hero > .container-xl { position: relative; z-index: 2; }
.hero-dots { z-index: 3; margin-bottom: 1.25rem; }
.hero-dots [data-bs-target] { width: .6rem; height: .6rem; border-radius: 50%; border: 0; }

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero .lead { letter-spacing: .08em; }

/* Inner-page banner */
.page-banner {
    padding: 9rem 0 4rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(rgba(20, 24, 26, .6), rgba(20, 24, 26, .6)), var(--hero-img, none) center / cover var(--ink);
}

.page-banner h1 { text-transform: uppercase; letter-spacing: .15em; font-size: clamp(1.8rem, 5vw, 3rem); }

/* Sections */
.section { padding: 5rem 0; }
.section-alt { background: var(--paper); }

.img-card { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4 / 5; }
.img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.img-card:hover img { transform: scale(1.06); }
.img-card .caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, .75));
    text-align: center;
}
.img-card h3 { text-transform: uppercase; letter-spacing: .15em; font-size: 1.25rem; margin: 0; }

.cta-band {
    color: #fff;
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(rgba(20, 24, 26, .7), rgba(20, 24, 26, .7)), var(--hero-img) center / cover fixed;
}

.feature-img { width: 100%; height: 100%; min-height: 16rem; max-height: 28rem; object-fit: cover; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: .5rem; }
.gallery-grid a { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.08); }

/* Price cards */
.price-card { border: 1px solid #e6dfd2; border-radius: 0; height: 100%; }
.price-card .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .8); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer hr { border-color: rgba(255, 255, 255, .2); opacity: 1; }

/* Page transitions: fade in on load, fade out (via .page-leaving, set in site.js) before navigating.
   The white html background is what shows through while the body is transparent. */
html { background: #fff; }
body { animation: page-in .45s ease-out; transition: opacity .3s ease-in; }
body.page-leaving { opacity: 0; }

@keyframes page-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    body { animation: none; }
}

.gallery-grid a[hidden] { display: none; }

/* Design chooser (temporary, for A/B testing) */
.style-chooser {
    position: fixed;
    left: .75rem;
    bottom: .75rem;
    z-index: 1080;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: calc(100vw - 1.5rem);
    gap: .25rem;
    padding: .3rem;
    font: 600 .8rem/1 system-ui, sans-serif;
    background: #111;
    color: #fff;
    border-radius: 1.2rem;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .35);
}

.style-chooser-label { padding: 0 .5rem; opacity: .7; }

.style-chooser button {
    border: 0;
    border-radius: 99px;
    padding: .5rem .8rem;
    background: transparent;
    color: #fff;
    font: inherit;
}

.style-chooser button[aria-pressed="true"] { background: #fff; color: #111; }
