/* ------------------------------------------------------------------
   Auramah Fest page (resources/views/frontend/auramah-fest/index.blade.php).
   Builds on journal.css (.aj base, colours, fonts, breadcrumb).
   Everything here is prefixed af- so it cannot touch the theme.
------------------------------------------------------------------- */

/* ---- hero ---- */
.af-hero { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--aj-forest); }
.af-hero > img { position: absolute; inset: 0; height: 100%; object-position: 50% 40%; }
/* darken the left and bottom, where the title sits, but keep the entrance arch bright */
.af-hero::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(8, 30, 22, .72) 0%, rgba(8, 30, 22, .38) 40%, rgba(8, 30, 22, 0) 62%),
    linear-gradient(180deg, rgba(8, 30, 22, 0) 45%, rgba(8, 30, 22, .7)); }
.af-hero-copy { position: relative; z-index: 2; padding: 0 0 64px; color: #fff; }
.af-hero-copy .aj-eyebrow { color: #e4c88f; }
.aj .af-hero h1 { color: #fff; font-size: clamp(44px, 7vw, 96px); line-height: .98; margin: 16px 0 18px; }
.af-hero h1 span { display: block; } /* the theme hides <br> on phones */
.af-hero-copy { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.af-hero-copy p { max-width: 520px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin: 0; }

/* ---- story ---- */
.af-intro { padding: 90px 0 70px; }
.af-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.af-lede { font-size: clamp(24px, 2.6vw, 33px); line-height: 1.32; margin: 18px 0 0; }
.af-intro-body p { font-size: 16px; line-height: 1.8; color: var(--aj-muted); margin: 0 0 18px; }
.af-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 60px; border-top: 1px solid var(--aj-line); }
.af-facts div { padding: 26px 0 0; }
.af-facts div + div { padding-left: 32px; border-left: 1px solid var(--aj-line); }
.af-facts strong { display: block; font: 500 40px/1 var(--aj-serif); color: var(--aj-pine); }
.af-facts span { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--aj-muted); }

/* ---- sticky day switcher ---- */
.af-daynav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--aj-line); border-bottom: 1px solid var(--aj-line); }
.af-daynav .aj-wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.af-daynav a { display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; border-bottom: 2px solid transparent; transition: background .2s, border-color .2s; }
.af-daynav a + a { border-left: 1px solid var(--aj-line); }
.af-daynav b { font: 500 20px/1.2 var(--aj-serif); }
.af-daynav span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--aj-muted); }
.af-daynav a:hover { background: var(--aj-cream); }
.af-daynav a.is-active { border-bottom-color: var(--aj-gold); background: var(--aj-cream); }
.af-daynav a.is-active b { color: var(--aj-pine); }

/* ---- a day ---- */
.af-day { padding: 90px 0 40px; scroll-margin-top: 70px; }
.af-day--alt { background: var(--aj-cream); }
.af-day-head { display: grid; grid-template-columns: auto 1fr minmax(260px, 340px); gap: 40px; align-items: start; padding-bottom: 46px; margin-bottom: 50px; border-bottom: 1px solid var(--aj-line); }
.af-day-num { font-size: 110px; line-height: .8; color: var(--aj-gold); }
.aj .af-day-head h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin: 12px 0 0; }
.af-itinerary { list-style: none; margin: 0; padding: 0; counter-reset: af; }
.af-itinerary li { counter-increment: af; display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--aj-line); font-size: 14px; line-height: 1.4; }
.af-itinerary li::before { content: counter(af, decimal-leading-zero); font-size: 11px; letter-spacing: .1em; color: var(--aj-gold); padding-top: 2px; }

/* ---- an event: heading + photo mosaic ---- */
.af-event { margin-bottom: 64px; scroll-margin-top: 90px; }
.af-event-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.aj .af-event-head h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }

.af-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 10px; }
.af-ph { position: relative; overflow: hidden; background: var(--aj-sage); }
.af-ph--feature { grid-column: span 2; grid-row: span 2; }
/* last-row stretch, set per breakpoint by the view (d = desktop, t = tablet, m = phone) */
.af-ph.d2 { grid-column: span 2; }
.af-ph.d4 { grid-column: span 4; }
.aj .af-ph--portrait img { object-position: 50% 30%; }
.aj .af-ph img { height: 100%; transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s; }
.af-ph::after { content: "+"; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--aj-ink); display: grid; place-items: center; font-size: 20px; opacity: 0; transform: translateY(6px); transition: .3s; }
.af-ph:hover img { transform: scale(1.04); }
.af-ph:hover::after, .af-ph:focus-visible::after { opacity: 1; transform: none; }
.af-ph:focus-visible { outline: 2px solid var(--aj-gold); outline-offset: 2px; }

/* ---- closing ---- */
.af-closing { position: relative; overflow: hidden; padding: 150px 0; color: #fff; background: var(--aj-forest); }
.af-closing > img { position: absolute; inset: 0; height: 100%; }
.af-closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 30, 22, .88) 20%, rgba(8, 30, 22, .35)); }
.af-closing-copy { position: relative; z-index: 2; }
.af-closing-copy > * { max-width: 640px; }
.af-closing .aj-eyebrow { color: #e4c88f; }
.af-closing .aj-serif { font-size: clamp(26px, 3vw, 40px); line-height: 1.25; margin: 18px 0 22px; }
.af-closing-small { font-size: 16px; line-height: 1.75; color: rgba(255, 255, 255, .78); margin: 0 0 34px; }
.aj .af-closing .aj-read { color: #fff; }
.aj .af-closing .aj-read:hover span { background: #fff; color: var(--aj-forest); }

/* plain serif ampersand in headings (Playfair's own is a swash) */
.aj .af-amp { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: .92em; padding: 0 .04em; }

/* lightbox caption */
.mfp-title { font-family: "DM Sans", sans-serif; letter-spacing: .04em; }

/* ---- responsive ---- */
@media (max-width: 991px) {
    .af-intro-grid { grid-template-columns: 1fr; gap: 28px; }
    .af-day-head { grid-template-columns: auto 1fr; }
    .af-itinerary { grid-column: 1 / -1; }
    .af-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; }
    .af-ph.d2, .af-ph.d4 { grid-column: auto; }
    .af-ph.t2 { grid-column: span 2; }
    .af-ph.t3 { grid-column: span 3; }
}
@media (max-width: 767px) {
    .af-hero { min-height: min(74vh, 640px); }
    .af-hero::after { background: linear-gradient(180deg, rgba(8, 30, 22, 0) 28%, rgba(8, 30, 22, .62) 52%, rgba(8, 30, 22, .9) 78%); }
    .af-hero-copy { padding-bottom: 40px; }
    .af-intro { padding: 60px 0 50px; }
    .af-facts strong { font-size: 30px; }
    .af-facts div + div { padding-left: 16px; }
    .af-daynav a { padding: 11px 10px; }
    .af-daynav b { font-size: 16px; }
    .af-daynav span { font-size: 9px; letter-spacing: .08em; }
    .af-day { padding: 60px 0 20px; }
    .af-day-head { gap: 20px; padding-bottom: 32px; margin-bottom: 36px; }
    .af-day-num { font-size: 70px; }
    .af-event { margin-bottom: 48px; }
    .af-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 6px; }
    .af-ph.t2, .af-ph.t3 { grid-column: auto; }
    .af-ph.m2 { grid-column: span 2; }
    .af-closing { padding: 90px 0; }
}
