/* ==========================================================================
   tonydibbin.com — static rebuild
   Palette and type lifted from the original Nicepage design.
   ========================================================================== */

:root {
  --navy:        #3e588b;   /* primary brand blue, section bands */
  --navy-dark:   #384f7d;   /* hover state */
  --blue:        #7090cf;   /* mid blue */
  --blue-pale:   #c0cfec;   /* icon badges */
  --accent:      #db545a;   /* accent red */
  --ink:         #111111;
  --ink-soft:    #444444;
  --paper:       #ffffff;
  --paper-alt:   #fafafa;
  --footer:      #3d3d3d;

  --font-head: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --wrap: 1140px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .02em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* small spacing utilities — kept as classes rather than inline styles so the
   Content-Security-Policy can forbid inline styles outright */
.mt-s  { margin-top: 1.6em; }
.mt-m  { margin-top: 2em; }
.mt-44 { margin-top: 44px; }
.mt-56 { margin-top: 56px; }
.mt-64 { margin-top: 64px; }
.my-44 { margin: 44px 0; }

.measure { max-width: 820px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }
.label-note { font-weight: 400; text-transform: none; letter-spacing: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* skip link for keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #ececec;
  backdrop-filter: saturate(180%) blur(8px);
}

.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 96px;
  max-width: 1320px;
}

.logo img { width: 181px; height: auto; }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 10px; cursor: pointer;
  color: var(--navy);
}
.nav-toggle svg { display: block; }

.nav ul {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px; list-style: none; margin: 0; padding: 0;
}

.nav a {
  display: block;
  white-space: nowrap;
  padding: 9px 10px;
  font-size: .9rem;
  color: var(--ink);
  border-radius: 3px;
  transition: background .15s, color .15s;
}
.nav a:hover, .nav a:focus { background: var(--navy); color: #fff; text-decoration: none; }
.nav a.is-active { background: #efefef; }

/* -------------------------------------------------------------- layout -- */
section { scroll-margin-top: 100px; }

.band        { padding: 80px 0; background: var(--paper); }
.band--navy  { padding: 80px 0; background: var(--navy); color: #fff; }
.band--navy h1, .band--navy h2, .band--navy h3 { color: #fff; }
.band--navy a { color: #fff; text-decoration: underline; }

/* the thin solid colour dividers from the original design */
.rule { height: 92px; background: var(--navy); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--narrow-left { grid-template-columns: 5fr 7fr; }
.split--narrow-right { grid-template-columns: 7fr 5fr; }
.split--top { align-items: start; }

.center { text-align: center; }
.lede { font-size: 1.05rem; font-weight: 600; }

/* ---------------------------------------------------------------- hero -- */
.hero { padding: 72px 0 88px; }

.hero__img {
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  width: 100%;
}

.eyebrow {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .95rem;
  padding: 14px 34px;
  margin-bottom: 22px;
}

/* -------------------------------------------------------------- button -- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .85rem;
  padding: 16px 34px;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.btn:hover, .btn:focus { background: var(--navy); color: #fff; text-decoration: none; }

.btn--solid { background: var(--navy); color: #fff; }
.btn--solid:hover, .btn--solid:focus { background: var(--navy-dark); border-color: var(--navy-dark); }

.band--navy .btn { border-color: #fff; color: #fff; }
.band--navy .btn:hover, .band--navy .btn:focus { background: #fff; color: var(--navy); }

/* ------------------------------------------------------------ services -- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.service__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: grid; place-items: center;
  margin-bottom: 26px;
}
.service__icon img { width: 38px; height: 38px; }

.service h3 { margin-bottom: 1em; }
.service p { font-size: .95rem; }

/* ---------------------------------------------------------------- biog -- */
.biog { display: grid; grid-template-columns: 5fr 9fr; gap: 56px; align-items: start; }

.biog__figures { display: grid; gap: 56px; position: sticky; top: 130px; }

.biog__figures img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

/* --------------------------------------------------------------- grids -- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* photos in a grid are cropped to a common shape so rows line up */
.grid-2 img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.grid-3 img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* photos beside a block of text keep their natural shape, capped in height
   so a tall portrait shot can't run away with the section */
.split > img { width: 100%; max-height: 760px; object-fit: cover; }

.client-list {
  columns: 3;
  column-gap: 40px;
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
  font-style: italic;
  font-weight: 600;
}
.client-list li { break-inside: avoid; padding: 3px 0; }

.station-list { list-style: none; margin: 1.2em 0 0; padding: 0; }
.station-list li { padding: 3px 0; }
.station-list strong { color: inherit; }

/* ------------------------------------------------------------ showreel -- */
.showreel { display: grid; gap: 26px; max-width: 940px; margin: 0 auto; }

.media-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* click-to-load YouTube facade — keeps the page fast and drops the tracking
   cookie only once the visitor actually asks to watch */
.yt-facade { cursor: pointer; border: 0; padding: 0; display: block; }
.yt-facade img { width: 100%; height: 100%; object-fit: cover; }
.yt-facade::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 72px; height: 50px; border-radius: 12px;
  background: rgba(220,30,30,.92);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.yt-facade::before {
  content: ""; position: absolute; z-index: 2; inset: 0; margin: auto;
  width: 0; height: 0;
  border-style: solid; border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}
.yt-facade:hover::after { background: rgb(220,30,30); }

.audio-embed { width: 100%; height: 166px; border: 0; display: block; background: #f2f2f2; }
.audio-caption { font-size: .8rem; text-align: center; margin: 8px 0 0; opacity: .85; }

/* ------------------------------------------------------------- contact -- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }

.contact-grid > img { box-shadow: 0 14px 34px rgba(0,0,0,.28); width: 100%; }

.contact-card {
  background: #fff;
  color: var(--ink);
  padding: 48px 44px;
}
/* the card sits inside a navy band, so put the dark-on-light colours back */
.band--navy .contact-card h2,
.band--navy .contact-card h3 { color: var(--navy); }
.band--navy .contact-card { color: var(--ink); }
.band--navy .contact-card a { color: var(--navy); text-decoration: underline; }

.contact-card h2 { text-align: center; }

.contact-details {
  text-align: center;
  font-weight: 700;
  letter-spacing: .06em;
  margin-bottom: 32px;
}
.band--navy .contact-card .contact-details a,
.contact-details a { color: var(--ink); text-decoration: none; display: block; padding: 4px 0; }
.band--navy .contact-card .contact-details a:hover,
.contact-details a:hover { color: var(--navy); text-decoration: underline; }

/* ---------------------------------------------------------------- form -- */
.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 7px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  padding: 12px 14px;
  border: 1px solid #cfcfcf;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--navy);
  outline: 2px solid rgba(62,88,139,.25);
  outline-offset: 0;
}

/* honeypot — hidden from people, visible to dumb bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-note { font-size: .78rem; color: var(--ink-soft); margin-top: 14px; }

.form-message { padding: 14px 16px; border-radius: 3px; margin-bottom: 20px; font-size: .92rem; }
.form-message--ok   { background: #e7f4ea; border: 1px solid #a9d6b5; color: #1e5b30; }
.form-message--err  { background: #fdeaea; border: 1px solid #f0bcbc; color: #8a2226; }

/* -------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--footer);
  color: #d8d8d8;
  text-align: center;
  padding: 34px 0;
  font-size: .85rem;
  font-style: italic;
}
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #d8d8d8; }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); gap: 44px; }
  .client-list { columns: 2; }
  .biog { grid-template-columns: 1fr; }
  .biog__figures {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid #e4e4e4;
    box-shadow: 0 14px 26px rgba(0,0,0,.10);
    padding: 10px 0 18px;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0 12px; }
  .nav a { padding: 14px 12px; border-bottom: 1px solid #f0f0f0; }

  .split, .split--narrow-left, .split--narrow-right, .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .band, .band--navy { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .rule { height: 56px; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.85rem; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .services { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .client-list { columns: 1; }
  .biog__figures { grid-template-columns: repeat(2, 1fr); }
  .contact-card { padding: 32px 24px; }
  .eyebrow { letter-spacing: .18em; padding: 12px 22px; font-size: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------- printing -- */
@media print {
  .site-header, .nav-toggle, .rule, .media-embed, .audio-embed { display: none; }
  body { color: #000; }
}
