/* Home page: WordPress-only additions on top of the Reel prototype CSS (base.css + reel.css). */

/* The home sections' colours apply on any page a block is placed on */
.dir-reel main { --q-bg: #000; --q-fg: #fff; --q-muted: #a3a3a3; --q-line: rgba(255,255,255,.16); }
.dir-reel { --q-space: clamp(104px, 12vw, 176px); }
@media (max-width: 640px) { .dir-reel { --q-space: 72px; } }

/* Logged-in admin bar sits above the fixed header */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Contact form: spam trap hidden from people, error note */
.cf__hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf__alert { margin-bottom: 1.2rem; padding: .8rem 1rem; border-left: 2px solid #c0392b; background: #fbeeec; color: #7a1f14; font-size: .95rem; }

/* Instagram feed plugin output inside our section */
.q-ig__feed { margin-top: 2rem; }

/* Text section block */
.text-sec .sec-head + .text-sec__body { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.text-sec__body { max-width: 44rem; }
.text-sec__link { margin-top: 2rem; }

/* E.G. Instagram Feed plugin inside this theme (classes added via eg_ig_classes) */
.dir-reel .eg-ig { --eg-ig-max: none; }
.dir-reel .eg-ig__intro { color: var(--q-muted); opacity: 1; }
.dir-reel .eg-ig__tile { background: #1a1a1a; }
.dir-reel .eg-ig__ext { font-size: .85em; }

/* Home: film styles (heading + text over three tiles), spaced like the team heading */
.styles__head { max-width: 680px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.styles__head .q-h { margin-bottom: 1.2rem; }

/* Partner logo bar: white (Jack, 19 Nov 2026). The logos are uploaded white on transparent and turned dark here
   by inverting them (Crown Videos does the reverse: black uploads inverted onto its black bar). */
.logobar { background: #fff; color: #111; }
.logobar .slot__img, .logorow__item img { filter: invert(1); }
.logobar__intro { margin: 0 0 clamp(1.4rem, 2.6vw, 2.2rem); text-align: center; font-family: var(--font); font-size: .9rem; font-weight: 400; letter-spacing: .04em; line-height: 1.5; color: #6b6b6b; }
/* "All in one row": every logo side by side, equal widths (--n = how many) */
.logorow { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 1.4rem clamp(1.2rem, 2.6vw, 3rem); align-items: center; }
.logorow__item { aspect-ratio: 600 / 238; }
.logorow__item img { width: 100%; height: 100%; object-fit: contain; opacity: .8; transform: scale(calc(var(--s, 1) * 1.265)); }   /* +10% then +15% (Jack, 19 Nov), on top of each logo's own Size */
@media (max-width: 900px) {
  /* phones and tablets: three to a line, the last line centred */
  .logorow { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 1.4rem; }
  .logorow__item { flex: 0 0 calc((100% - 2.8rem) / 3); }
}

/* Header blur on its own layer behind the header, not on the header itself. A backdrop-filter on the header makes it
   the box the fixed full-screen phone menu is sized against: scrolled down, the menu opened as a 152px strip and only
   jumped to full screen once the blur had faded out (.35s), so it felt laggy. */
.site-header.is-scrolled, .site-header.menu-is-open { -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s ease; }
.site-header.is-scrolled::after { opacity: 1; }

/* Footer: logo, then three columns (about · contact + Instagram line · enquiry link); no social icons — Instagram is
   the line in the middle column. Copied into chrome.css for the other pages by docs/build_chrome_css.py. */
.ft__top { padding-block: clamp(96px, 12vw, 152px) clamp(56px, 6vw, 80px); }
.ft__top .ft__logo { width: 168px; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.ft__cols { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 2.4rem clamp(2rem, 5vw, 5rem); }
.ft__col { display: flex; flex-direction: column; gap: 1.2rem; }
.ft__intro p { margin: 0; font-size: .95rem; line-height: 1.8; color: #cfcfcf; max-width: 38ch; }
.ft__intro p + p { margin-top: .8em; }
.ft__cta { margin: 0; font-family: var(--font-head); font-weight: 400; letter-spacing: -.01em; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; color: #fff; }
@media (max-width: 900px) {
  .ft__cols { grid-template-columns: 1fr; gap: 2rem; }
}
