/*
 * Shared visual language for pmrelph.uk.
 * Arial only, with the red / white / deep-blue palette requested by Phil.
 */
:root {
  --navy: #071c33;
  --navy-2: #0b2f55;
  --blue: #0e477a;
  --red: #e31b23;
  --white: #ffffff;
  --mist: #eef3f7;
  --ink: #0b1724;
  --muted: #617184;
  --line: rgba(255,255,255,.16);
  --shadow: 0 22px 60px rgba(0,0,0,.28);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--white);
  background: var(--navy);
  line-height: 1.55;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.sponsor-pill {
  position: fixed;
  z-index: 1000;
  right: 24px;
  top: 22px;
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 28px rgba(227,27,35,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sponsor-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(227,27,35,.44); }

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: linear-gradient(to bottom, rgba(5,21,39,.85), rgba(5,21,39,0));
  pointer-events: none;
}
.site-nav a { pointer-events: auto; text-decoration: none; }
.brand-word { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #071c33;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(5,20,38,.2), rgba(5,20,38,.12)), url('/assets/images/honister-hero.webp');
  /* Keep the entire 16:9 poster visible on desktop. */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--navy));
}

/* Hero scroll cue: signals that the poster is the start of a scrolling story. */
.scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
  opacity: .92;
  transition: opacity .28s ease, transform .28s ease;
}
.scroll-cue:hover { opacity: 1; transform: translateX(-50%) translateY(-2px); }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }
.scroll-chevron {
  display: block;
  font-size: 2rem;
  line-height: .7;
  animation: scroll-nudge 1.6s ease-in-out infinite;
}
@keyframes scroll-nudge {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50% { transform: translateY(7px); opacity: 1; }
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 54px;
  display: flex;
  justify-content: flex-end;
}
.hero-copy .glass {
  width: min(520px, 100%);
  max-width: 520px;
  padding: 24px 26px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius);
  background: rgba(7,28,51,.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
  color: #ff696f;
}
.hero h1 {
  font-size: clamp(2.35rem, 4.2vw, 4rem);
  line-height: .92;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section { position: relative; padding: 110px 24px; }
.section-inner { width: min(1180px, 100%); margin: 0 auto; }
.section.light { background: var(--mist); color: var(--ink); }
.section.dark { background: var(--navy); }
.section.deep { background: #030b12; }

.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 54px; align-items: start; }
.display-title { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .95; margin: 0 0 24px; letter-spacing: -.03em; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.35rem); max-width: 760px; }

.fact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.fact {
  border: 1px solid rgba(7,28,51,.12);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,.72);
}
.fact small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 5px; }
.fact strong { font-size: 1.1rem; }

.charity-card {
  margin-top: 34px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.charity-card a { color: #fff; font-weight: 800; text-decoration-color: var(--red); text-decoration-thickness: 3px; }

.challenge {
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.challenge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,11,18,.95) 0%, rgba(3,11,18,.72) 48%, rgba(3,11,18,.55) 100%);
  z-index: -1;
}
.challenge .parallax-bg {
  position: absolute;
  inset: -12%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  filter: saturate(.85) contrast(1.05);
  will-change: transform;
}
.challenge-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: center;
  min-height: 75svh;
}
.challenge-number { font-size: 1rem; color: #fff; background: var(--red); padding: 8px 10px; display: inline-block; font-weight: 900; margin-bottom: 18px; }
.challenge h2 { font-size: clamp(3rem, 7vw, 6.6rem); text-transform: uppercase; line-height: .88; margin: 0 0 28px; letter-spacing: -.04em; }
.challenge p { font-size: 1.16rem; max-width: 620px; }
.personal-note {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 5px solid var(--red);
  background: rgba(255,255,255,.09);
  font-size: 1.05rem;
}

.photo-stack { position: relative; min-height: 520px; }
.photo-card {
  position: absolute;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #fff;
}
.photo-card.large { width: min(520px, 82%); right: 0; top: 0; transform: rotate(2deg); }
.photo-card.small { width: min(280px, 46%); left: 0; bottom: 10px; transform: rotate(-4deg); }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-card.small img { image-rendering: auto; }
.photo-caption { color: #25384a; font-size: .76rem; padding: 8px 10px 4px; }

.cta-section { text-align: center; padding: 130px 24px; background: linear-gradient(145deg, var(--navy), #02080e); }
.cta-section h2 { font-size: clamp(3rem, 8vw, 7rem); line-height: .9; margin: 0 auto 24px; max-width: 1000px; text-transform: uppercase; }
.cta-section p { max-width: 700px; margin: 0 auto 34px; font-size: 1.2rem; }
.big-cta {
  display: inline-block;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
}
.link-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.link-row a { color: #fff; }

footer { background: #02080e; color: #afbecb; padding: 30px 24px 50px; text-align: center; font-size: .9rem; }

/* Home and posts */
.simple-page { min-height: 100svh; padding: 90px 24px; background: radial-gradient(circle at top right, #164f82, var(--navy) 52%); }
.simple-wrap { width: min(1100px,100%); margin: 0 auto; }
.simple-hero { padding: 8vh 0 50px; }
.simple-hero h1 { font-size: clamp(3.2rem, 10vw, 8rem); line-height: .88; margin: 0; }
.simple-hero p { font-size: 1.25rem; color: #d7e2eb; max-width: 620px; }
.feature-card { display: grid; grid-template-columns: 1.2fr .8fr; border-radius: 24px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.feature-card img { width:100%; height:100%; object-fit: cover; min-height: 330px; }
.feature-card .copy { padding: 38px; }
.feature-card a { color: var(--red); font-weight: 900; }
.posts-list { display: grid; gap: 18px; margin-top: 30px; }
.post-card { padding: 24px; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); border-radius:16px; text-decoration:none; }
.post-card h3 { margin:0 0 8px; }

/* Admin */
.admin-page { min-height:100svh; background:#eef3f7; color:var(--ink); padding:40px 20px 80px; }
.admin-wrap { width:min(1100px,100%); margin:0 auto; }
.admin-toolbar { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:24px; }
.admin-card { background:#fff; border-radius:18px; padding:24px; margin-bottom:20px; box-shadow:0 10px 30px rgba(7,28,51,.08); }
.admin-card h2 { margin-top:0; }
.form-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.form-field { display:grid; gap:6px; }
.form-field.full { grid-column:1/-1; }
.form-field label { font-size:.82rem; font-weight:800; color:#42566a; }
.form-field input,.form-field textarea { width:100%; padding:12px 13px; border:1px solid #cbd6df; border-radius:10px; background:#fff; color:#0b1724; }
.form-field textarea { min-height:110px; resize:vertical; }
.admin-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
.btn { border:0; border-radius:10px; padding:11px 16px; cursor:pointer; font-weight:800; }
.btn.primary { background:var(--red); color:#fff; }
.btn.secondary { background:var(--navy); color:#fff; }
.btn.ghost { background:#edf2f6; color:var(--ink); }
.status { min-height:24px; margin-top:12px; font-size:.9rem; color:#475d72; }
.post-editor { border-top:1px solid #e0e7ed; padding-top:20px; margin-top:20px; }

@media (max-width: 850px) {
  .sponsor-pill { top:auto; bottom:16px; right:16px; left:16px; justify-content:center; }
  .scroll-cue { bottom: 78px; }
  .site-nav { height:58px; }
  .hero { min-height: 78svh; }
  .hero-media { background-size: cover; background-position: 58% center; }
  .hero-copy { padding-bottom:90px; justify-content:center; }
  .hero-copy .glass { max-width:100%; }
  .intro-grid,.challenge-grid,.feature-card { grid-template-columns:1fr; }
  .challenge-grid { gap:28px; }
  .section { padding:80px 20px; }
  .photo-stack { min-height:430px; }
  .photo-card.large { width:86%; }
  .photo-card.small { width:48%; }
  .form-grid { grid-template-columns:1fr; }
  .form-field.full { grid-column:auto; }
}

@media (max-width: 560px) {
  .hero { min-height: 70svh; }
  .hero-media { background-size: cover; background-position: 60% center; }
  .hero-copy .glass { padding:18px; }
  .fact-grid { grid-template-columns:1fr; }
  .challenge h2 { font-size: clamp(2.7rem, 16vw, 4.6rem); }
  .photo-stack { min-height:355px; }
  .photo-card.large { width:88%; }
  .photo-card.small { width:46%; }
  .simple-page { padding:70px 18px 110px; }
  .feature-card .copy { padding:25px; }
}

/* Respect visitors who have asked their device to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax-bg { transform:none !important; }
  .scroll-chevron { animation: none; }
}

/* Homepage v5: publication-style landing page. */
.home-page {
  padding-top: 54px;
}
.home-wrap {
  padding-top: 0;
}
.home-page .feature-card {
  margin-top: 0;
}
.feature-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.025em;
}
.home-posts {
  margin-top: 54px;
}
.posts-empty {
  color: #c9d6e2;
}
.post-date {
  margin: 0 0 8px;
  color: #ff858a;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
@media (max-width: 760px) {
  .home-page { padding-top: 28px; }
  .home-posts { margin-top: 38px; }
}

/* Homepage v6: clean editorial layout with a proper personal header. */
.home-page {
  min-height: 100svh;
  padding: 0 0 100px;
  color: var(--ink);
  background: #f4f7fa;
}

.home-header {
  position: relative;
  z-index: 20;
  width: 100%;
  background: var(--navy);
  border-bottom: 5px solid var(--red);
  box-shadow: 0 8px 28px rgba(7, 28, 51, .14);
}

.home-header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-brand {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.025em;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.home-nav a {
  position: relative;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  padding: 10px 0;
  transition: color .18s ease;
}

.home-nav a:hover,
.home-nav a.active {
  color: #fff;
}

.home-nav a.active::after,
.home-nav a:hover::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 0;
  bottom: 2px;
  border-radius: 999px;
  background: var(--red);
}

.home-wrap {
  width: min(1180px, calc(100% - 48px));
  padding-top: 64px;
}

.featured-section,
.home-posts {
  scroll-margin-top: 30px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.home-kicker {
  margin: 0 0 5px;
  color: var(--red);
  font-size: .75rem;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .17em;
}

.home-section-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1;
  letter-spacing: -.025em;
}

.home-page .feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  margin: 0;
  border: 1px solid rgba(7, 28, 51, .1);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 20px 55px rgba(7, 28, 51, .12);
}

.feature-image-link {
  min-height: 400px;
  background: var(--navy);
  overflow: hidden;
}

.home-page .feature-card img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  transition: transform .45s ease;
}

.feature-image-link:hover img {
  transform: scale(1.018);
}

.home-page .feature-card .copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 44px;
}

.home-page .feature-card .copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--red);
}

.home-page .eyebrow {
  color: var(--red);
}

.feature-title {
  color: var(--navy);
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.feature-summary {
  margin: 0 0 26px;
  color: #405365;
  font-size: 1.05rem;
  line-height: 1.6;
}

.read-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red) !important;
  text-decoration: none;
  font-weight: 900;
  border-bottom: 2px solid rgba(227,27,35,.25);
  padding-bottom: 3px;
}

.read-link:hover {
  border-color: var(--red);
}

.home-posts {
  margin-top: 76px;
  padding-top: 0;
}

.posts-heading-row {
  padding-bottom: 17px;
  border-bottom: 1px solid #d7e0e7;
}

.home-page .posts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px;
  margin-top: 26px;
}

.posts-empty-panel {
  grid-column: 1 / -1;
  padding: 34px 36px;
  border: 1px solid #d8e1e8;
  border-left: 5px solid var(--red);
  border-radius: 14px;
  background: #fff;
}

.posts-empty-title {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
}

.home-page .posts-empty {
  margin: 0;
  color: var(--muted);
}

.home-page .post-card {
  display: block;
  padding: 28px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8e1e8;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(7,28,51,.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-page .post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227,27,35,.35);
  box-shadow: 0 14px 34px rgba(7,28,51,.1);
}

.home-page .post-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.45rem;
}

.home-page .post-card p:not(.post-date) {
  color: #536678;
}

.home-page .post-date {
  color: var(--red);
}

.post-read {
  display: inline-block;
  margin-top: 9px;
  color: var(--red);
  font-weight: 800;
}

@media (max-width: 850px) {
  .home-header-inner {
    width: min(100% - 36px, 1180px);
    min-height: 80px;
  }
  .home-wrap {
    width: min(100% - 36px, 1180px);
    padding-top: 44px;
  }
  .home-page .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-image-link,
  .home-page .feature-card img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .home-page .feature-card .copy::before {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    width: auto;
    height: 5px;
  }
  .home-page .posts-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .home-header-inner {
    width: calc(100% - 28px);
    min-height: 72px;
  }
  .home-brand {
    font-size: 1.55rem;
  }
  .home-nav {
    gap: 15px;
  }
  .home-nav a {
    font-size: .78rem;
  }
  .home-wrap {
    width: calc(100% - 28px);
    padding-top: 34px;
  }
  .home-page .feature-card .copy {
    padding: 30px 25px 32px;
  }
  .feature-title {
    font-size: 2.15rem;
  }
  .home-posts {
    margin-top: 56px;
  }
  .posts-empty-panel {
    padding: 26px 24px;
  }
}
