/* ==========================================================================
   thelocationguy.uk — design tokens
   Values sourced verbatim from the client-approved design handoff
   (design_handoff_thelocationguy/README.md). Treat as source of truth.
   ========================================================================== */

:root {
  /* Color */
  --ink: #22192F;
  --muted: #6B6580;
  --sky: #4A6572;
  --gradient: linear-gradient(100deg, #3B2C54 0%, #585278 55%, #4A6572 100%);
  --gradient-nav: linear-gradient(100deg, #3B2C54 0%, #585278 55%, #728F9E 100%);
  --card-fill: #F3F1EE;
  --border-light: #E3DFE6;
  --border-medium: #C9C3D2;
  --footer-bg: #22192F;
  --footer-text: #FBFAF8;
  --footer-text-dim: #D9D5E0;
  --footer-text-dimmer: #9089A0;
  --page-bg: #FBFAF8;
  --number-muted: #C9C3D2;
  --meta-text: #585278;

  /* Type */
  --font-display: 'Big Shoulders', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --content-max: 1080px;
  --side-pad: clamp(20px, 5vw, 64px);
  --radius-card: 3px;
  --radius-control: 2px;
  --shadow-cta: 0 8px 20px -8px rgba(59, 44, 84, 0.55);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Safety net against any single element pushing the page wider than the
     viewport on mobile (long unbreakable text, a media element before its
     size is known, etc.) — nothing on this site relies on horizontal
     scroll, so this only ever hides accidental overflow, never content. */
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, form { margin: 0; }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}

.site-header .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 76px;
  padding-top: 12px;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.3px;
}

.brand-lockup { display: flex; flex-direction: column; line-height: 1; }

.brand-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 21px;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: flex-end;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav a {
  color: var(--muted);
  padding-bottom: 2px;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  background-image: var(--gradient-nav);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}

@media (max-width: 480px) {
  .site-nav { gap: 16px 20px; font-size: 12px; }
  .brand-tagline { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: var(--radius-control);
  background: var(--gradient);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--shadow-cta);
  cursor: pointer;
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero {
  padding-top: 88px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 0.98;
  letter-spacing: 0.2px;
  margin: 0 0 24px;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subhead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 60ch;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Section heading row
   ========================================================================== */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 96px 0 40px;
  flex-wrap: wrap;
}

/* First section-head on a page (no hero above it) needs less top space,
   just enough to clear the sticky header comfortably. */
.section-head--first {
  margin-top: 64px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
}

.section-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: right;
}

/* ==========================================================================
   Featured productions
   ========================================================================== */

.productions { display: flex; flex-direction: column; }

.production {
  display: grid;
  grid-template-columns: 88px 260px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  align-items: start;
}

/* Grid items default to min-width:auto, which lets a wide child (a video
   before its intrinsic size is known) force its track wider than intended
   — the classic cause of cards ending up different widths / page overflow
   on mobile. Pinning min-width:0 makes every column strictly obey the
   track width defined above instead. */
.production > * { min-width: 0; }

.production:last-child { border-bottom: 1px solid var(--border-light); }

.production-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--sky);
  padding-top: 4px;
}

.production-index span {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--number-muted);
  line-height: 1;
}

.production-media { display: flex; flex-direction: column; gap: 16px; }

.media-frame {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card-fill);
  border: 1px solid var(--border-light);
  position: relative;
}

.media-frame.ratio-16-9 { aspect-ratio: 16 / 9; }
.media-frame.ratio-4-3 { aspect-ratio: 4 / 3; }

.media-frame iframe,
.media-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Keeps every card the same frame size regardless of a given video's
     native resolution/aspect ratio — the box is always set by
     .ratio-16-9, the video content just fills or crops to match it. */
  object-fit: cover;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F3F1EE, #E9E6EF);
  color: var(--number-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  text-align: center;
  padding: 10px;
}

.production-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: var(--meta-text);
}

.production-meta span { white-space: nowrap; }
.production-meta b { color: var(--ink); font-weight: 600; }

.production-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  margin: 0 0 10px;
}

.production-desc {
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

@media (max-width: 900px) {
  .production {
    grid-template-columns: 260px 1fr;
    gap: 24px;
  }
  .production-index { display: none; }
}

@media (max-width: 600px) {
  .production {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   Full credits
   ========================================================================== */

.credits-category + .credits-category { margin-top: 56px; }

/* .credits-category is a <details> element — native expand/collapse,
   no JS required. Open by default so the page still reads as a full
   list; the chevron just gives visitors a way to collapse categories
   they don't need, which matters most on mobile. */
.credits-category summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}

.credits-category summary::-webkit-details-marker { display: none; }

.credits-category summary h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  color: var(--meta-text);
}

.credits-category summary::after {
  content: "\2212"; /* minus, shown while open */
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--sky);
  flex-shrink: 0;
}

.credits-category:not([open]) summary::after {
  content: "+";
}

.credits-table { display: flex; flex-direction: column; margin-top: 14px; }

.credits-row,
.credits-row-head {
  display: grid;
  grid-template-columns: 110px 1.6fr 1.2fr 1.4fr 130px;
  gap: 16px;
  align-items: baseline;
}

.credits-row-head {
  padding: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.credits-row {
  padding: 11px 0;
  border-top: 1px solid var(--border-light);
  font-size: 13.5px;
}

.credits-table > .credits-row:last-child { border-bottom: 1px solid var(--border-light); }

.credits-row .col-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--sky);
  letter-spacing: 0.3px;
}

.credits-row .col-title { font-weight: 500; color: var(--ink); }
.credits-row .col-director,
.credits-row .col-producer { color: var(--muted); }

.credits-row .col-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 900px) {
  .credits-row-head { display: none; }

  .credits-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .credits-row > span::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-light);
  margin-top: 120px;
  padding: 56px 0 40px;
  background: var(--footer-bg);
  color: var(--footer-text);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.3px;
}

.footer-brand span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--sky);
  margin-top: 6px;
  text-transform: uppercase;
}

.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sky);
  margin: 0 0 14px;
}

.footer-cols a,
.footer-cols p {
  display: block;
  font-size: 14px;
  color: var(--footer-text-dim);
  margin: 0 0 8px;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 40px auto 0;
  padding: 24px var(--side-pad) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--footer-text-dimmer);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   About page
   ========================================================================== */

.about-top {
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-photo {
  aspect-ratio: 16 / 9;
  background: var(--card-fill);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-body h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 42px);
  margin: 0 0 20px;
}

.about-body p { color: var(--muted); margin-bottom: 18px; }

.about-body h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sky);
  margin: 32px 0 14px;
}

.bullet-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15.5px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--gradient-nav);
}

.about-closing {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.5vw, 42px);
  margin-top: 32px;
  line-height: 1.3;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.about-closing-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.contact-page { padding-bottom: 96px; }

.contact-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 56px;
  margin-bottom: 56px;
}

.contact-item {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.contact-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sky);
  display: block;
  margin-bottom: 6px;
}

.contact-item a { font-size: 17px; color: var(--ink); }

.btn-lg {
  padding: 20px 36px;
  font-size: 15px;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 56px auto 0;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-control);
  background: #FFFFFF;
  color: var(--ink);
}

.field textarea { resize: vertical; }

.contact-form .btn { align-self: flex-start; }

@media (max-width: 700px) {
  .contact-matrix { grid-template-columns: 1fr; gap: 22px; }
}

/* ==========================================================================
   Testimonials page
   ========================================================================== */

.testimonials-header { padding-top: 72px; padding-bottom: 0; }

.testimonials-photo {
  aspect-ratio: 16 / 9;
  background: var(--card-fill);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.testimonials-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Sits between the written and video testimonials, sized to match the
   middle written-testimonial card exactly by reusing its 3-column grid
   and only placing the photo in the centre column. */
.testimonials-photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 64px;
}

.testimonials-photo-row .testimonials-photo {
  grid-column: 2;
}

.testimonials-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 58px);
  margin: 0 0 18px;
}

.testimonials-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.written-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 96px;
  /* Quotes vary a lot in length — size each card to its own content
     instead of stretching every card to match the tallest one. */
  align-items: start;
}

.written-card {
  background: var(--card-fill);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.written-card p {
  font-size: 16px;
  color: var(--ink);
  flex: 1;
}

.written-attribution {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-medium);
  padding-top: 14px;
}

.written-attribution .name { font-weight: 600; font-size: 14.5px; }

.written-attribution .role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.video-grid > * { min-width: 0; }

.video-card { display: flex; flex-direction: column; gap: 16px; }

.video-card .name { font-weight: 600; font-size: 14.5px; }

.references-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  padding-bottom: 80px;
}

.references-note a { color: var(--sky); text-decoration: underline; }

@media (max-width: 900px) {
  .written-grid { grid-template-columns: 1fr 1fr; }

  /* No true "middle" column once written-grid drops to 2-up, so just
     centre the photo at roughly one card's width instead. */
  .testimonials-photo-row { grid-template-columns: 1fr; }
  .testimonials-photo-row .testimonials-photo { grid-column: 1; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .written-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .testimonials-photo-row .testimonials-photo { max-width: 100%; }
}
