/*
Theme Name: Pete James Magic
Theme URI: https://www.petejamesmagic.co.uk
Author: Pete James Magic
Description: Premium, conversion-focused custom WordPress theme for a professional close-up magician. Built mobile-first with modern CSS (Grid/Flexbox/variables), vanilla JS, WCAG 2.2 AA accessibility, Core Web Vitals performance and local SEO structure targeting Greater London, Kent, Surrey, Sussex, Essex, Herts & Bucks.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pjm

This file is the single production stylesheet (kept as one file deliberately
to minimise HTTP requests / render-blocking cost — see assets/css/critical.css
for the small above-the-fold subset that gets inlined in <head>).
Organised BEM-ish: .pjm-block__element--modifier
*/

/* ==========================================================================
   1. CSS VARIABLES / DESIGN TOKENS
   ========================================================================== */
:root {
  /* Brand */
  --color-blue: #004BA1;
  --color-blue-dark: #00305E;
  --color-blue-tint: #E8F0FA;
  --color-red: #D7261A;
  --color-red-dark: #A81C13;
  --color-bg: #F4F7F6;
  --color-white: #FFFFFF;
  --color-text: #262A2E;      /* dark charcoal */
  --color-text-muted: #5C646B;
  --color-border: #E1E6E9;
  --color-placeholder: #DDE2E6;
  --color-placeholder-border: #B9C1C7;
  --color-whatsapp: #25D366;

  /* Type */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1220px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(15, 30, 60, 0.06);
  --shadow: 0 14px 40px rgba(15, 30, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 30, 60, 0.16);
  --header-h: 88px;
  --header-h-mobile: 68px;
  --booking-bar-h: 62px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--color-blue-dark);
  letter-spacing: -0.01em;
}
p { margin: 0 0 16px; color: var(--color-text-muted); }
.pjm-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.pjm-section { padding: 100px 0; scroll-margin-top: var(--header-h); }
.pjm-section--tight { padding: 64px 0; }
.pjm-section--alt { background: var(--color-bg); }
.pjm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-red);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}
.pjm-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--color-red); display: inline-block; }
.pjm-section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.pjm-section__head h2 { font-size: clamp(28px, 4vw, 42px); }
.pjm-section__head p { font-size: 17px; }

/* Accessibility: skip link + focus states */
.pjm-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-blue);
  color: var(--color-white);
  padding: 14px 22px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.pjm-skip-link:focus { left: 0; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
  border-radius: 4px;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Buttons */
.pjm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 34px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.pjm-btn--primary { background: var(--color-red); color: var(--color-white); }
.pjm-btn--primary:hover { background: var(--color-red-dark); transform: translateY(-3px); box-shadow: var(--shadow); }
.pjm-btn--secondary { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.pjm-btn--secondary:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); }
.pjm-btn--outline { background: transparent; color: var(--color-blue); border-color: var(--color-blue); }
.pjm-btn--outline:hover { background: var(--color-blue); color: var(--color-white); }
.pjm-btn--sm { padding: 11px 22px; font-size: 13px; }
.pjm-btn--book { background: var(--color-red); color: var(--color-white); padding: 13px 28px; font-size: 14px; }
.pjm-btn--book:hover { background: var(--color-red-dark); }
.pjm-btn--block { width: 100%; }

/* Placeholder utility (keeps CLS at zero via aspect-ratio) */
.pjm-ph {
  background:
    repeating-linear-gradient(135deg, var(--color-placeholder), var(--color-placeholder) 10px, #EEF1F3 10px, #EEF1F3 20px);
  border: 2px dashed var(--color-placeholder-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  width: 100%;
}
.pjm-ph__label { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pjm-ph__label svg { width: 28px; height: 28px; opacity: 0.55; }
.pjm-ph--1x1 { aspect-ratio: 1 / 1; }
.pjm-ph--4x3 { aspect-ratio: 4 / 3; }
.pjm-ph--3x2 { aspect-ratio: 3 / 2; }
.pjm-ph--16x9 { aspect-ratio: 16 / 9; }
.pjm-ph--portrait { aspect-ratio: 3 / 4; }
.pjm-ph--tall { aspect-ratio: 4 / 5; }

/* Applied by pjm_responsive_image() to any real photo that replaces a
   placeholder (headshot, gallery, service cards, etc) — fills its
   container edge-to-edge like the placeholder does, without distortion. */
.pjm-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* Wrapper used by pjm_image_or_placeholder() once a real photo has been
   uploaded via the Customizer — mirrors the .pjm-ph--* aspect ratios so
   layout doesn't shift when a placeholder is swapped for a real image. */
.pjm-photo { border-radius: var(--radius); overflow: hidden; width: 100%; }
.pjm-photo--1x1 { aspect-ratio: 1 / 1; }
.pjm-photo--4x3 { aspect-ratio: 4 / 3; }
.pjm-photo--3x2 { aspect-ratio: 3 / 2; }
.pjm-photo--16x9 { aspect-ratio: 16 / 9; }
.pjm-photo--portrait { aspect-ratio: 3 / 4; }
.pjm-photo--tall { aspect-ratio: 4 / 5; }

/* ==========================================================================
   3. HEADER / NAVIGATION
   Sticky. Transparent over hero, solid once scrolled (.is-scrolled via JS).
   ========================================================================== */
.pjm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
.pjm-header.is-scrolled {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  height: var(--header-h-mobile);
}
/* Permanently solid on every page except the front page (see header.php) —
   guarantees the header is always visible even with no hero image behind
   it, regardless of scroll position. */
.pjm-header--solid {
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.pjm-header--solid .pjm-nav__list a { color: var(--color-blue-dark); }
.pjm-header--solid .pjm-nav__list a.is-active { color: var(--color-red); }
.pjm-header--solid .pjm-menu-toggle span { background: var(--color-blue-dark); }
.pjm-header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.pjm-logo__img { height: 46px; width: auto; transition: filter 0.3s ease; }
/* On transparent (over-hero) header, invert logo to white-friendly if it's a dark logo.
   Excluded on --solid headers (every page except the front page), which always keep
   the logo in its natural colours. */
.pjm-header:not(.is-scrolled):not(.pjm-header--solid) .pjm-logo__img { filter: brightness(0) invert(1); }

.pjm-nav { display: flex; align-items: center; }
.pjm-nav__list { display: flex; gap: 36px; }
.pjm-nav__list a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-white);
  position: relative;
  padding: 8px 2px;
  transition: color 0.3s ease;
}
.pjm-header.is-scrolled .pjm-nav__list a { color: var(--color-blue-dark); }
.pjm-nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--color-red);
  transition: width 0.25s var(--ease);
}
.pjm-nav__list a:hover::after,
.pjm-nav__list a.is-active::after { width: 100%; }
.pjm-nav__list a.is-active { color: var(--color-red); }
.pjm-header.is-scrolled .pjm-nav__list a.is-active { color: var(--color-red); }

.pjm-header__actions { display: flex; align-items: center; gap: 18px; }
.pjm-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none;
  border: none;
  cursor: pointer;
}
.pjm-menu-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.3s ease;
}
.pjm-header.is-scrolled .pjm-menu-toggle span { background: var(--color-blue-dark); }
.pjm-menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.pjm-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.pjm-menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Breadcrumbs (interior pages only) */
.pjm-breadcrumbs { padding: 130px 0 0; font-size: 13px; color: var(--color-text-muted); }
.pjm-breadcrumbs a { color: var(--color-blue); }
.pjm-breadcrumbs li { display: inline; }
.pjm-breadcrumbs li:not(:last-child)::after { content: '/'; margin: 0 8px; color: var(--color-border); }

/* ==========================================================================
   4. HERO
   ========================================================================== */
.pjm-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-blue-dark);
}
.pjm-hero__bg { position: absolute; inset: 0; z-index: 0; border-radius: 0; overflow: hidden; }
/* Real hero photo (once uploaded) must fill the section edge-to-edge without
   stretching — object-fit: cover crops to fill while keeping proportions. */
.pjm-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.pjm-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,20,48,0.80) 0%, rgba(0,20,48,0.55) 45%, rgba(0,20,48,0.88) 100%);
}
/* Subtle ambient animation — soft moving glow, tasteful not distracting */
.pjm-hero__glow {
  position: absolute; z-index: 1;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215,38,26,0.22) 0%, transparent 70%);
  top: -20%; right: -10%;
  animation: pjm-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes pjm-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 4%) scale(1.08); }
}
.pjm-hero__content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 860px;
  padding: calc(var(--header-h) + 40px) 24px 60px;
}
.pjm-hero__content h1 {
  color: var(--color-white);
  font-size: clamp(34px, 6vw, 66px);
  margin-bottom: 22px;
}
.pjm-hero__content .pjm-hero__sub {
  color: rgba(255,255,255,0.90);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
  margin: 0 auto 40px;
}
.pjm-hero__ctas { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pjm-hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.75);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.pjm-hero__scroll span:last-child {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 20px;
  position: relative;
}
.pjm-hero__scroll span:last-child::before {
  content: '';
  position: absolute; top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--color-white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: pjm-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes pjm-scroll-dot { 0% { opacity: 1; top: 6px; } 100% { opacity: 0; top: 18px; } }

/* Trust statistics bar — sits directly beneath hero */
.pjm-stats { background: var(--color-blue); padding: 48px 0; }
.pjm-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.pjm-stats__num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-white);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  margin-bottom: 8px;
}
.pjm-stats__label {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   4b. SERVICE LANDING PAGE (template-service-page.php)
   ========================================================================== */
.pjm-service-hero {
  position: relative;
  min-height: 56vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--color-blue-dark);
}
.pjm-service-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pjm-service-hero__bg img,
.pjm-service-hero__bg .pjm-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pjm-service-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,20,48,0.72) 0%, rgba(0,20,48,0.5) 45%, rgba(0,20,48,0.82) 100%);
}
.pjm-service-hero__content {
  position: relative; z-index: 2;
  text-align: center; color: var(--color-white);
  max-width: 760px;
  padding: calc(var(--header-h) + 40px) 24px 50px;
}
.pjm-service-hero__content h1 { color: var(--color-white); font-size: clamp(30px, 5vw, 52px); margin-bottom: 16px; }
.pjm-service-hero__content p { color: rgba(255,255,255,0.9); font-size: 17px; max-width: 600px; margin: 0 auto 30px; }
.pjm-service-hero__ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.pjm-service-content { max-width: 800px; margin: 0 auto; }
.pjm-service-content h2,
.pjm-service-content h3 { margin-top: 36px; }
.pjm-service-content p:last-child { margin-bottom: 0; }
.pjm-service-content ul,
.pjm-service-content ol { margin: 0 0 18px 22px; color: var(--color-text-muted); }
.pjm-service-content img { border-radius: var(--radius); }
.pjm-service-content .wp-block-gallery { margin: 30px 0; }

/* Local landing page (template-location-page.php): single-service CTA
   banner, and the "Other Areas We Cover" cross-link grid. */
.pjm-loc-cta {
  background: var(--color-blue-tint);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.pjm-loc-cta h2 { color: var(--color-blue-dark); margin-bottom: 10px; }
.pjm-loc-cta p { color: var(--color-text-muted); margin-bottom: 26px; }

.pjm-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.pjm-areas__item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-text);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pjm-areas__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--color-blue); color: var(--color-blue); }
.pjm-areas__item .icon { width: 22px; height: 22px; color: var(--color-red); flex-shrink: 0; }
.pjm-areas__item .icon svg { width: 100%; height: 100%; }

@media (max-width: 768px) {
  .pjm-service-hero { min-height: 46vh; }
  .pjm-loc-cta { padding: 32px 24px; }
}

/* ==========================================================================
   5. WHY CHOOSE
   ========================================================================== */
.pjm-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.pjm-why__item {
  text-align: center;
  padding: 34px 20px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pjm-why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pjm-why__icon {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--color-blue-tint);
  display: flex; align-items: center; justify-content: center;
}
.pjm-why__icon svg { width: 26px; height: 26px; color: var(--color-blue); }
.pjm-why__item h3 { font-size: 16px; margin-bottom: 0; }

/* ==========================================================================
   6. ABOUT / MEET PETE
   ========================================================================== */
.pjm-about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.pjm-about__image .pjm-ph,
.pjm-about__image .pjm-photo { min-height: 480px; }
.pjm-about__badge {
  position: absolute;
  background: var(--color-red);
  color: var(--color-white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
  transform: translate(-16px, -16px);
}
.pjm-about__image { position: relative; }
.pjm-about__text h2 { font-size: clamp(26px, 3.5vw, 38px); }
.pjm-about__list { margin: 26px 0; display: grid; gap: 12px; }
.pjm-about__list li { display: flex; gap: 10px; font-weight: 500; color: var(--color-text); }
.pjm-about__list li::before { content: '✦'; color: var(--color-red); flex-shrink: 0; }

/* ==========================================================================
   7. SERVICES
   ========================================================================== */
.pjm-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.pjm-service {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.pjm-service:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pjm-service__image .pjm-ph,
.pjm-service__image .pjm-photo { border-radius: 0; min-height: 200px; }
.pjm-service__body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.pjm-service__icon {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--color-blue-tint);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  margin-top: -54px;
  border: 4px solid var(--color-white);
}
.pjm-service__icon svg { width: 22px; height: 22px; color: var(--color-red); }
.pjm-service h3 { font-size: 21px; margin-bottom: 10px; }
.pjm-service p { flex: 1; }
.pjm-service .pjm-btn { margin-top: 14px; align-self: flex-start; }

/* ==========================================================================
   8. PORTFOLIO / GALLERY + VIDEO + CLIENT LOGOS
   ========================================================================== */
.pjm-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.pjm-filters button {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.pjm-filters button:hover { border-color: var(--color-blue); color: var(--color-blue); }
.pjm-filters button.is-active { background: var(--color-blue); border-color: var(--color-blue); color: var(--color-white); }

.pjm-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 46px;
}
.pjm-gallery__item { border-radius: var(--radius); overflow: hidden; transition: opacity 0.3s ease, transform 0.4s var(--ease); }
.pjm-gallery__item.is-hidden,
.pjm-gallery__item.is-gallery-extra { display: none; }
.pjm-gallery__item .pjm-ph,
.pjm-gallery__item .pjm-photo { border-radius: var(--radius); transition: transform 0.5s var(--ease); }
.pjm-gallery__item:hover .pjm-ph,
.pjm-gallery__item:hover .pjm-photo { transform: scale(1.04); }

.pjm-gallery__more-wrap { text-align: center; margin-bottom: 24px; }

/* Wraps 1–3 .pjm-video blocks — one per event category that has a showreel
   configured at Appearance > Site Content > Showreels. Auto-fits into a
   1/2/3-column grid depending on how many are actually present, no
   modifier class needed; collapses to a single stacked column on mobile
   via the responsive rules below. A single video centres itself nicely
   thanks to auto-fit + a max-width cap on each item. */
.pjm-video-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto 70px;
  align-items: start;
  justify-content: center;
}
.pjm-video { max-width: 500px; margin: 0 auto; text-align: center; width: 100%; }
.pjm-video h3 { margin-bottom: 26px; }
.pjm-video__frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.pjm-video__frame iframe,
.pjm-video__frame .pjm-ph {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; border-radius: 0;
}

/* Click-to-play poster/facade — a custom photo with a play button instead
   of embedding YouTube's own (often mismatched-looking) thumbnail/player
   right away. JS swaps this for the real iframe on click. */
.pjm-video__facade {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; padding: 0; margin: 0;
  cursor: pointer;
  background: #0c1a2e;
  display: block;
}
.pjm-video__facade::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 10, 30, 0.18);
  transition: background 0.25s ease;
}
.pjm-video__facade:hover::after,
.pjm-video__facade:focus-visible::after { background: rgba(0, 10, 30, 0.32); }
.pjm-video__poster {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.pjm-video__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--color-red);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease), background 0.2s ease;
  z-index: 1;
}
.pjm-video__facade:hover .pjm-video__play,
.pjm-video__facade:focus-visible .pjm-video__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--color-red-dark);
}
.pjm-video__play svg { width: 28px; height: 28px; color: var(--color-white); margin-left: 4px; }
@media (max-width: 480px) {
  .pjm-video__play { width: 60px; height: 60px; }
  .pjm-video__play svg { width: 22px; height: 22px; margin-left: 3px; }
}

.pjm-logos__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.pjm-logos__grid .pjm-ph { min-height: 70px; font-size: 11px; }
.pjm-logos__grid .pjm-photo { min-height: 70px; }
.pjm-logos__title { text-align: center; color: var(--color-text-muted); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 30px; }

/* ==========================================================================
   9. REVIEWS
   ========================================================================== */
.pjm-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pjm-review {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.pjm-review__stars { color: #F5A623; font-size: 16px; letter-spacing: 2px; display: block; margin-bottom: 14px; }
.pjm-review p { font-style: italic; color: var(--color-text); }
.pjm-review__author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.pjm-review__avatar { width: 42px; height: 42px; border-radius: 50%; }
.pjm-review__avatar.pjm-ph { min-height: 0; font-size: 0; }
.pjm-review__avatar.pjm-photo { min-height: 0; }
.pjm-review__author strong { font-family: var(--font-heading); color: var(--color-blue-dark); display: block; font-size: 14px; }
.pjm-review__author span { font-size: 13px; color: var(--color-text-muted); }
.pjm-review--sample { position: relative; }
.pjm-review--sample::after {
  content: 'Sample';
  position: absolute; top: 14px; right: 14px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.pjm-reviews__note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 30px;
}

/* ==========================================================================
   10. LEAD MAGNET
   ========================================================================== */
.pjm-lead {
  background: linear-gradient(120deg, var(--color-blue) 0%, var(--color-blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 50px;
  align-items: center;
  color: var(--color-white);
}
.pjm-lead__icon { width: 160px; height: 200px; margin: 0 auto; }
.pjm-lead__icon.pjm-ph { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); }
.pjm-lead__icon.pjm-photo { box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
/* Shown instead of the grey placeholder when a "Lead Magnet Icon Style" is
   picked in the Customizer but no real graphic has been uploaded yet. */
.pjm-lead__icon-badge {
  width: 120px; height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
}
.pjm-lead__icon-badge svg { width: 52px; height: 52px; color: var(--color-white); }
.pjm-lead__body h3 { color: var(--color-white); font-size: clamp(22px, 3vw, 30px); }
.pjm-lead__body p { color: rgba(255,255,255,0.88); }
.pjm-lead__form { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.pjm-lead__form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 15px 18px;
  border-radius: 999px; border: none;
  font-size: 15px; font-family: var(--font-body);
}
.pjm-lead__consent { font-size: 13px; color: rgba(255,255,255,0.72); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }
.pjm-lead__consent input { margin-top: 3px; }
.pjm-form-msg { margin-top: 12px; font-weight: 600; font-size: 14px; }
.pjm-form-msg--success { color: #B7F7C0; }
.pjm-form-msg--error { color: #FFC9C0; }

/* ==========================================================================
   11. FAQ
   ========================================================================== */
.pjm-faq { max-width: 840px; margin: 0 auto; }
.pjm-faq__item { border-bottom: 1px solid var(--color-border); }
.pjm-faq__q { margin: 0; }
.pjm-faq__btn {
  width: 100%;
  background: none; border: none; text-align: left;
  padding: 24px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
  color: var(--color-blue-dark);
  cursor: pointer;
}
.pjm-faq__icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-bg);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: background 0.25s ease;
}
.pjm-faq__icon::before, .pjm-faq__icon::after { content: ''; position: absolute; background: var(--color-blue); transition: transform 0.25s ease; }
.pjm-faq__icon::before { width: 11px; height: 2px; }
.pjm-faq__icon::after { width: 2px; height: 11px; }
.pjm-faq__item.is-open .pjm-faq__icon { background: var(--color-red); }
.pjm-faq__item.is-open .pjm-faq__icon::before,
.pjm-faq__item.is-open .pjm-faq__icon::after { background: var(--color-white); }
.pjm-faq__item.is-open .pjm-faq__icon::after { transform: scaleY(0); }
.pjm-faq__panel { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.pjm-faq__panel p { padding: 0 4px 24px; margin: 0; }

/* ==========================================================================
   12. CONTACT
   ========================================================================== */
.pjm-contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: flex-start; }
/* Grid tracks default to minmax(auto, 1fr), and "auto" falls back to a
   track's min-content size. Percentage-width iframes (the Giggio form,
   the Google Map embed) can't resolve that percentage during min-content
   sizing, so browsers fall back to the iframe's ~300px intrinsic default
   as the floor — wide enough to force this whole grid past the viewport
   on mobile, where overflow-x: hidden then just clips it off-screen
   instead of scrolling. min-width: 0 removes that floor. */
.pjm-contact__grid > * { min-width: 0; }
.pjm-contact__form-wrap {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 10px;
  max-width: 100%;
  overflow: hidden; /* clips the Giggio embed if its content is ever wider than this box */
}
.pjm-contact__form-wrap iframe {
  display: block; /* iframes are inline by default, which can add stray whitespace/overflow */
  width: 100%;
  max-width: 100%;
  border: 0;
}
.pjm-contact__details { background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 38px; }
.pjm-contact__details h3 { font-size: 22px; }
.pjm-contact__item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.pjm-contact__item .icon { width: 42px; height: 42px; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pjm-contact__item .icon svg { width: 18px; height: 18px; color: var(--color-blue); }
.pjm-contact__item strong { display: block; color: var(--color-blue-dark); font-family: var(--font-heading); font-size: 14px; }
.pjm-contact__item span, .pjm-contact__item a { color: var(--color-text-muted); font-size: 15px; }
.pjm-social { display: flex; gap: 12px; margin: 22px 0 28px; }
.pjm-social a { width: 42px; height: 42px; border-radius: 50%; background: var(--color-blue); color: var(--color-white); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, transform 0.2s ease; }
.pjm-social a:hover { background: var(--color-red); transform: translateY(-3px); }
.pjm-social svg { width: 18px; height: 18px; }
.pjm-map.pjm-ph,
.pjm-map.pjm-photo { min-height: 220px; }

/* ==========================================================================
   13. FLOATING ELEMENTS
   ========================================================================== */
.pjm-whatsapp-float {
  position: fixed; right: 24px; bottom: 24px;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 1000;
  transition: transform 0.2s ease;
}
.pjm-whatsapp-float:hover { transform: scale(1.08); }
.pjm-whatsapp-float svg { width: 30px; height: 30px; color: var(--color-white); }

/* Compact speed-dial FAB — replaces the old full-width mobile booking bar.
   Mobile-only (see media query below); desktop keeps the single WhatsApp
   bubble above. Collapsed it's just a 52px circle in the corner; tapping
   it reveals three small labelled action pills, tapping again collapses
   them — no permanent strip of screen real estate is reserved. */
.pjm-fab { display: none; position: fixed; right: 10px; bottom: 18px; z-index: 1000; }
.pjm-fab__actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  margin-bottom: 12px;
}
.pjm-fab__action {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 700; color: var(--color-blue-dark);
  white-space: nowrap;
  opacity: 0; transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pjm-fab.is-open .pjm-fab__action {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto;
}
.pjm-fab.is-open .pjm-fab__actions > *:nth-child(1) { transition-delay: 0.08s; }
.pjm-fab.is-open .pjm-fab__actions > *:nth-child(2) { transition-delay: 0.04s; }
.pjm-fab__action .icon-circle {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-blue-tint); color: var(--color-blue);
}
.pjm-fab__action svg { width: 15px; height: 15px; }
.pjm-fab__action--whatsapp .icon-circle { background: var(--color-whatsapp); color: var(--color-white); }
.pjm-fab__action--book .icon-circle { background: var(--color-red); color: var(--color-white); }
.pjm-fab__toggle-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* Static label beside the toggle so a bare "+" isn't the only clue it opens
   contact options — fades out once expanded since the action pills already
   carry their own labels at that point. */
.pjm-fab__label {
  background: var(--color-white);
  color: var(--color-blue-dark);
  font-size: 12.5px; font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pjm-fab.is-open .pjm-fab__label { opacity: 0; transform: translateX(6px); pointer-events: none; }
.pjm-fab__toggle {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--color-blue); color: var(--color-white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}
.pjm-fab__toggle svg { width: 22px; height: 22px; transition: transform 0.25s ease; }
.pjm-fab.is-open .pjm-fab__toggle { background: var(--color-red); }
.pjm-fab.is-open .pjm-fab__toggle svg { transform: rotate(45deg); }

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.pjm-footer { background: var(--color-blue-dark); color: rgba(255,255,255,0.72); padding: 50px 0 30px; }
.pjm-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.pjm-footer h4 { color: var(--color-white); font-size: 15px; margin-bottom: 16px; }
.pjm-footer a { color: rgba(255,255,255,0.72); transition: color 0.2s ease; }
.pjm-footer a:hover { color: var(--color-white); }
.pjm-footer__areas { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,0.55); }
.pjm-footer__local { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; margin-bottom: 22px; }
.pjm-footer__local h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.pjm-footer__local-list { font-size: 13px; line-height: 2.1; margin: 0; }
.pjm-footer__local-list a { color: rgba(255,255,255,0.6); }
.pjm-footer__local-list span { color: rgba(255,255,255,0.3); }
.pjm-footer__bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; text-align: center; font-size: 13px; }

/* ==========================================================================
   15. SCROLL ANIMATIONS (fade in / slide up)
   ========================================================================== */
.pjm-animate { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.pjm-animate.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .pjm-services__grid { grid-template-columns: 1fr 1fr; }
  .pjm-reviews__grid { grid-template-columns: 1fr 1fr; }
  .pjm-why__grid { grid-template-columns: 1fr 1fr; }
  .pjm-gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .pjm-logos__grid { grid-template-columns: repeat(3, 1fr); }
  .pjm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  /* Stack every showreel full-width and re-centre each, rather than
     squeezing them side by side on a narrow screen. */
  .pjm-video-group { grid-template-columns: 1fr; gap: 40px; max-width: 500px; }
  .pjm-video { max-width: 100%; }
  .pjm-about__grid { grid-template-columns: 1fr; gap: 32px; }
  /* Headshot: smaller and centred on mobile instead of full-bleed width —
     a full-width portrait photo felt oversized and pushed layout width. */
  .pjm-about__image { max-width: 260px; margin: 0 auto; }
  .pjm-about__image .pjm-ph,
  .pjm-about__image .pjm-photo { min-height: 0; }
  .pjm-about__badge { max-width: calc(100% + 20px); font-size: 13px; padding: 10px 14px; }
  .pjm-contact__grid { grid-template-columns: 1fr; }
  .pjm-lead { grid-template-columns: 140px 1fr; padding: 40px; gap: 30px; }
  .pjm-stats__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  :root { --header-h: var(--header-h-mobile); }
  .pjm-header:not(.is-scrolled):not(.pjm-header--solid) { background: rgba(0,32,66,0.92); }
  .pjm-header:not(.is-scrolled):not(.pjm-header--solid) .pjm-logo__img { filter: brightness(0) invert(1); }
  .pjm-nav {
    position: fixed; top: var(--header-h-mobile); left: 0; right: 0;
    background: var(--color-white);
    flex-direction: column; align-items: flex-start;
    padding: 22px 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
    transform: translateY(-130%); opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    max-height: calc(100vh - var(--header-h-mobile));
    overflow-y: auto;
  }
  .pjm-nav.is-open { transform: translateY(0); opacity: 1; }
  .pjm-nav__list { flex-direction: column; gap: 18px; width: 100%; }
  /* Scoped to #pjm-nav specifically — the footer's "Quick Links" reuses
     this same .pjm-nav__list class via pjm_fallback_menu(), and without
     this scope the rule was also forcing dark-navy text onto the footer's
     dark-navy background, making those links invisible until hovered. */
  #pjm-nav .pjm-nav__list a { color: var(--color-blue-dark) !important; }
  .pjm-menu-toggle { display: flex; }
  .pjm-header__actions .pjm-btn--book { display: none; }
  .pjm-services__grid { grid-template-columns: 1fr; }
  .pjm-reviews__grid { grid-template-columns: 1fr; }
  .pjm-why__grid { grid-template-columns: 1fr 1fr; }
  .pjm-gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .pjm-logos__grid { grid-template-columns: repeat(2, 1fr); }
  .pjm-lead { grid-template-columns: 1fr; text-align: center; }
  .pjm-lead__form { justify-content: center; }
  /* The consent checkbox row is its own flex container, so text-align:
     center on the parent doesn't touch it — without this it stays hugged
     to the left while everything else above it is centered. */
  .pjm-lead__consent { justify-content: center; text-align: left; }
  .pjm-section { padding: 64px 0; }
  .pjm-footer__grid { grid-template-columns: 1fr; }
  .pjm-whatsapp-float { display: none; }
  .pjm-fab { display: block; }
}
@media (max-width: 480px) {
  .pjm-stats__grid { grid-template-columns: 1fr 1fr; }
  .pjm-why__grid { grid-template-columns: 1fr; }
  .pjm-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pjm-logos__grid { grid-template-columns: repeat(2, 1fr); }
  .pjm-lead { padding: 28px; }
  .pjm-contact__details { padding: 26px; }
  .pjm-whatsapp-float { width: 54px; height: 54px; right: 16px; }
}

/* Print: hide non-essential UI */
@media print {
  .pjm-header, .pjm-whatsapp-float, .pjm-booking-bar, .pjm-hero__scroll { display: none !important; }
}
