/* Mark Minors – site styles.
   Recreates the look of the original Bootstrap/Flatly site (2016–2026) without the framework:
   Neuzeit Grotesk (Adobe Fonts kit), #1d1d1d page, red #c92127 accents, fixed-background
   "parallax" panels on the homepage. */

@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-display: swap; src: url("../fonts/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "entypo-social"; font-display: block; src: url("../fonts/entypo-social.woff2") format("woff2"); }

:root {
  --bg: #1d1d1d;
  --fg: #fff;
  --red: #c92127;
  --red-dark: #952329;
  --red-nav: #b31d23;
  --red-button: #e74c3c;
  --max: 1170px;
  --gutter: 15px;
  --nav-h: 80px;
  --font: "neuzeit-grotesk", "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 400 15px/1.428571 var(--font);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-top: var(--nav-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover, a:focus { color: var(--red-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
h1, h2, h3 { font-weight: 400; line-height: 1.1; margin: 21px 0 10.5px; }
p { margin: 0 0 10.5px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--fg); color: #000; padding: 0.5rem 1rem; }
.skip-link:focus { top: 1rem; }

/* ---------- Navbar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  height: var(--nav-h);
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.85);
}
.brand {
  border: 3px solid #fff;
  padding: 0 11px;
  margin: 5px;
  color: #fff;
  font-size: 25.5px;
  line-height: 36px;
  white-space: nowrap;
}
.brand:hover, .brand:focus { color: #fff; text-decoration: none; }
.site-nav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 19.5px 15px; line-height: 21px; color: #fff; text-transform: uppercase; }
.site-nav a:hover, .site-nav a:focus { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { background: var(--red-nav); }
@media (min-width: 992px) {
  .site-header { padding: 20px 200px 20px 60px; height: auto; min-height: 100px; }
  :root { --nav-h: 100px; }
  .brand { font-size: 33px; line-height: 54px; height: 60px; padding: 0 15px; }
  .site-nav a { padding: 19.5px 15px; }
}
@media (max-width: 380px) { .brand { font-size: 20px; } .site-nav a { padding-inline: 10px; } }

/* ---------- Sticky social buttons (right edge) ---------- */
.social { position: fixed; right: 0; top: 150px; z-index: 40; }
.social ul { margin: 0; padding: 0; list-style: none; }
.social a { position: relative; display: block; width: 35px; height: 35px; line-height: 35px; text-align: center; color: #fff; background: #333; font-size: 16px; }
.social a::before { font-family: "entypo-social"; }
.social a span { position: absolute; top: 0; right: -120px; width: 120px; line-height: 35px; text-align: center; background: inherit; font-size: 14px; transition: right 0.2s ease; }
.social a:hover, .social a:focus { color: #fff; text-decoration: none; }
.social a:hover span, .social a:focus span { right: 100%; }
.social-linkedin { background: #007bb6 !important; } .social-linkedin::before { content: "\f318"; }
.social-instagram { background: #517fa4 !important; } .social-instagram::before { content: "\f32d"; }
.social-facebook { background: #3b5998 !important; } .social-facebook::before { content: "\f30c"; }
.social-x { background: #000 !important; } .social-x::before { content: "\f309"; }
.social-vimeo { background: #1ab7ea !important; } .social-vimeo::before { content: "\f306"; }
.social-youtube { background: #cd201f !important; } .social-youtube::before { content: "\25b6"; font-family: var(--font); }

/* ---------- Parallax panels ----------
   Same effect as the old `background-attachment: fixed`, but done with a clipped,
   position:fixed <img> so it uses the responsive images and also works on iOS. */
.parallax {
  position: relative;
  min-height: 440px;
  display: flow-root;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  isolation: isolate;
  background: #000;
}
.parallax-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.parallax-bg img, .parallax-bg picture img { width: 100%; height: 100%; object-fit: cover; object-position: center center; max-width: none; }
@media (min-width: 992px) { .parallax { min-height: 670px; } }
@media (prefers-reduced-motion: reduce) {
  .parallax { clip-path: none; -webkit-clip-path: none; overflow: hidden; }
  .parallax-bg { position: absolute; }
}

/* ---------- Hero ---------- */
.hero-inner { padding-left: calc(var(--gutter) + 8.333%); }
.hero-title {
  margin: 290px 0 10.5px;
  color: var(--title-colour, #fff);
  font-size: clamp(42px, 9.1vw, 90px);
  line-height: 1.1;
  text-transform: uppercase;
}
@media (max-width: 767px) { .hero-inner { padding-left: var(--gutter); } .hero-title { margin-top: 240px; } }

/* ---------- Plain colour bands ---------- */
.band { display: flow-root; background: var(--band-bg, #000); color: var(--band-fg, #fff); }
.section-heading { margin: 30px 0; font-size: clamp(40px, 7vw, 60px); text-align: right; text-transform: uppercase; }

/* Showreel */
.showreel { min-height: 600px; padding-bottom: 60px; }
.showreel .wrap { padding-inline: calc(var(--gutter) + 8.333%); }
.showreel-player { max-width: 66.666%; margin-inline: auto; }
@media (max-width: 767px) { .showreel .wrap { padding-inline: var(--gutter); } .showreel-player { max-width: none; } }
.video { clear: both; position: relative; aspect-ratio: 16 / 9; background: #000; margin: 1.5rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Bio */
.bio-inner { display: flex; justify-content: flex-end; padding-inline: 0; }
.bio-panel {
  width: 100%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 19.5px;
  line-height: 1.428571;
  padding: 30px 30px 60px;
}
.bio-panel h2 { font-size: 4em; text-transform: uppercase; }
@media (min-width: 992px) {
  .bio-inner { padding-inline: var(--gutter); }
  .bio-panel { width: 50%; padding: 30px 80px 60px 30px; }
}

/* Latest posts */
.latest { background: #000; min-height: 600px; padding-bottom: 30px; }
.cards { display: grid; gap: 0 30px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card-title { font-size: 24px; margin: 30px 0; text-transform: uppercase; }
.card-media { position: relative; display: block; margin-bottom: 15px; aspect-ratio: 7 / 5; overflow: hidden; background: #111; }
.card-media img, .card-placeholder { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { background: linear-gradient(135deg, #222, #000); }
.card-overlay {
  position: absolute; inset: 0;
  padding: 20px; text-align: center;
  background: #000; color: #fff;
  opacity: 0.2;
  font-weight: 600; text-transform: uppercase;
  transition: opacity 0.3s ease-out;
}
.card-media:hover .card-overlay, .card-media:focus .card-overlay { opacity: 0.74; }
.card-media:hover, .card-media:focus { text-decoration: none; }
.card-kind { display: block; font-size: 30px; font-weight: 400; margin: 21px 0 10px; }
.card-excerpt { display: block; font-size: 13px; }

/* Contact */
.contact { min-height: 450px; font-size: 19.5px; line-height: 1.428571; padding-bottom: 30px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 0 30px; }
.contact-text h2 { font-size: 2em; text-transform: uppercase; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) {
  .contact-text { order: 2; padding: 0 150px 60px 30px; }
  .contact-form { order: 1; }
}
.contact-form { text-align: right; padding-top: 0; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 5px; font-weight: 700; }
.field input, .field textarea {
  display: block; width: 100%;
  font: 15px/1.428571 var(--font);
  color: #2c3e50; background: #fff;
  border: 2px solid #dce4ec; border-radius: 4px;
  padding: 10px 15px;
  text-align: left;
}
.field input { height: 45px; }
.field input:focus, .field textarea:focus { outline: none; border-color: #2c3e50; }
.field textarea { resize: vertical; min-height: 195px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { display: flex; justify-content: flex-end; }
.form-actions { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; gap: 10px 15px; }
button[type="submit"] {
  font: 15px/1.428571 var(--font);
  color: #fff; background: var(--red-button);
  border: 2px solid var(--red-button); border-radius: 4px;
  padding: 10px 15px; cursor: pointer;
}
button[type="submit"]:hover, button[type="submit"]:focus { background: #d62c1a; border-color: #d62c1a; }
button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; flex: 1 1 12rem; font-size: 15px; text-align: right; }
.form-status[data-kind="ok"] { color: #7bd88f; }
.form-status[data-kind="error"] { color: #ff6b6b; }

/* ---------- Text pages ---------- */
.prose a { color: var(--red); }
.bio-panel a, .contact a { color: var(--red); }
.page-title { font-size: 25.5px; text-transform: uppercase; margin-top: 21px; }
.meta { font-weight: 700; font-size: 15px; }
.listing, .post, .sitemap, .narrow { padding-top: 20px; padding-bottom: 60px; }
.narrow { max-width: 750px; }

/* News / reviews listing */
.list-item { margin-bottom: 30px; }
.list-item h2 { font-size: clamp(30px, 5vw, 39px); text-transform: uppercase; margin: 21px 0 10.5px; }
.list-media { display: block; max-width: 630px; margin-bottom: 10px; }
.list-excerpt { font-size: 15px; }
.read-more { font-size: 1.5em; }
.listing-intro { max-width: 750px; margin-bottom: 1rem; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; }

/* Single post */
.post-body { font-size: 15px; max-width: 900px; }
.post-body::after { content: ""; display: table; clear: both; }
.post-image { margin: 0 0 20px; }
@media (min-width: 401px) {
  .image-left .post-image { float: left; width: min(40%, 400px); margin: 0 20px 20px 0; }
  .image-right .post-image { float: right; width: min(40%, 400px); margin: 0 0 20px 20px; }
}
.image-top .post-image { max-width: 750px; }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; margin-top: 30px; font-size: 1.5em; text-transform: none; }
.post-nav a { text-transform: uppercase; }
.post-nav-index a { text-transform: none; }
.post-nav > div:last-child { text-align: right; }
.post-nav-index { text-align: center; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr 1fr; font-size: 1.15em; } .post-nav-index { grid-column: 1 / -1; grid-row: 2; } }
.post + .latest { margin-top: 50px; }

.sitemap ul { padding-left: 1.25rem; }

.draft-badge { display: inline-block; vertical-align: middle; background: #f5c518; color: #000; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { background: #f5f5f5; border-top: 20px solid var(--red); min-height: 120px; padding: 10px 0; }
.site-footer nav { padding: 5px 0; }
