/*
Theme Name: London Leadership Review
Theme URI: https://londonleadershipreview.com/
Author: London Leadership Review
Description: A lightweight custom WordPress theme for London Leadership Review.
Version: 0.1.6
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: llr
*/

:root {
  --llr-navy: #0a1f44;
  --llr-white: #ffffff;
  --llr-gold: #d4a637;
  --llr-blue: #194ed6;
  --llr-grey: #b0b0b0;

  /*
   * Systematic derived colours:
   * - Navy raised/dimmed variants are used only for depth, overlays, and focus contrast.
   * - Gold and blue hover states use color-mix against black or white, preserving the core palette.
   * - Gold is paired with navy text because gold/white does not meet WCAG AA for normal text.
   */
  --llr-navy-raised: color-mix(in srgb, var(--llr-navy) 88%, var(--llr-white));
  --llr-navy-deep: color-mix(in srgb, var(--llr-navy) 88%, #000000);
  --llr-navy-overlay: rgb(10 31 68 / 78%);
  --llr-gold-hover: color-mix(in srgb, var(--llr-gold) 88%, #000000);
  --llr-blue-hover: color-mix(in srgb, var(--llr-blue) 82%, #000000);
  --llr-grey-border: color-mix(in srgb, var(--llr-grey) 50%, var(--llr-white));
  --llr-focus-ring: color-mix(in srgb, var(--llr-gold) 78%, var(--llr-white));

  --llr-radius: 8px;
  --llr-radius-large: 10px;
  --llr-content-width: 1288px;
  --llr-section-space: clamp(3rem, 7vw, 6rem);
  --llr-gutter: clamp(1rem, 4vw, 2rem);
  --llr-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --llr-shadow: 0 22px 70px rgb(0 0 0 / 18%);
}

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

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  background: var(--llr-white);
  color: var(--llr-navy);
  font-family: var(--llr-font-sans);
  font-size: 1rem;
  line-height: 1.55;
}

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

a {
  color: var(--llr-blue);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--llr-blue-hover);
}

:focus-visible {
  outline: 3px solid var(--llr-focus-ring);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--llr-gold);
  color: var(--llr-navy);
  padding: 0.7rem 1rem;
  border-radius: var(--llr-radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer {
  background: var(--llr-navy);
  color: var(--llr-white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgb(255 255 255 / 10%);
}

.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: rgb(10 31 68 / 38%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 10%);
}

.header-inner,
.footer-inner,
.llr-section-inner {
  width: min(100% - (var(--llr-gutter) * 2), var(--llr-content-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 2rem;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--llr-white);
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
}

.site-branding img {
  width: 228px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid rgb(255 255 255 / 28%);
  border-radius: var(--llr-radius);
  background: transparent;
  color: var(--llr-white);
  font: inherit;
  font-weight: 800;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.5vw, 2.3rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  color: var(--llr-white);
  text-decoration: none;
  font-size: 1.03rem;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--llr-gold);
}

.hero-shell {
  background: var(--llr-navy);
  padding: 0;
}

.llr-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--llr-radius-large);
  background: var(--llr-navy-raised);
  color: var(--llr-white);
  box-shadow: var(--llr-shadow);
}

.llr-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(10 31 68 / 80%), rgb(10 31 68 / 58%)),
    var(--panel-image, linear-gradient(135deg, var(--llr-navy), var(--llr-blue)));
  background-position: var(--panel-position, center);
  background-size: cover;
  transform: scale(1.01);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-shell .llr-panel {
  border-radius: 0;
  box-shadow: none;
}

.hero-panel::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgb(10 31 68 / 76%), rgb(10 31 68 / 50%)),
    linear-gradient(180deg, rgb(10 31 68 / 34%), rgb(10 31 68 / 16%) 42%, rgb(10 31 68 / 66%));
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.llr-panel-content {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  min-height: 704px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 148px 118px 68px;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--llr-gutter) * 2), var(--llr-content-width));
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(100%, 1040px);
  min-height: 100svh;
  padding: 154px 0 54px;
  justify-content: center;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: var(--llr-gold);
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel .hero-content h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
}

.hero-panel .hero-content p:not(.hero-eyebrow) {
  max-width: 800px;
  font-size: clamp(1.06rem, 1.32vw, 1.28rem);
  line-height: 1.36;
  font-weight: 500;
}

.llr-eyebrow {
  margin: 0 0 1.3rem;
  color: var(--llr-gold);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.llr-panel h1,
.llr-panel h2 {
  max-width: 1000px;
  margin: 0;
  color: var(--llr-white);
  font-size: clamp(2.4rem, 4.1vw, 3.98rem);
  line-height: 1.08;
  font-weight: 900;
}

.llr-panel p {
  max-width: 1070px;
  margin: 1.05rem 0 0;
  color: var(--llr-white);
  font-size: clamp(1.04rem, 1.55vw, 1.45rem);
  line-height: 1.17;
  font-weight: 650;
}

.llr-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(18px, 3vw, 42px);
  margin-top: 92px;
  width: 100%;
  max-width: 1054px;
}

.hero-actions {
  max-width: 960px;
  margin-top: clamp(2.4rem, 6vh, 4.2rem);
}

.llr-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  padding: 0.86rem 1.65rem;
  border: 2px solid transparent;
  border-radius: var(--llr-radius);
  background: var(--llr-gold);
  color: var(--llr-navy);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.llr-button:hover,
.llr-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--llr-gold-hover);
  color: var(--llr-navy);
}

.llr-button.is-light {
  background: var(--llr-white);
  color: var(--llr-navy);
}

.llr-button.is-light:hover,
.llr-button.is-light:focus-visible {
  border-color: var(--llr-gold);
  background: var(--llr-white);
  color: var(--llr-blue-hover);
}

.review-section {
  padding: 42px 0 36px;
  background: var(--llr-white);
}

.consultancy-band {
  padding: 42px 0 36px;
  background: var(--llr-gold);
}

.review-panel .llr-panel-content,
.consultancy-panel .llr-panel-content {
  min-height: 618px;
  padding-top: 168px;
  padding-bottom: 58px;
}

.review-panel::before {
  background:
    linear-gradient(90deg, rgb(10 31 68 / 78%), rgb(10 31 68 / 62%)),
    var(--panel-image, linear-gradient(110deg, #0a5f7c, var(--llr-navy)));
}

.consultancy-panel::before {
  background:
    linear-gradient(90deg, rgb(10 31 68 / 88%), rgb(10 31 68 / 54%)),
    var(--panel-image, linear-gradient(110deg, var(--llr-navy-deep), #5a6b85));
}

.section-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 154px;
  height: auto;
  object-fit: contain;
}

.section-logo-consultancy {
  width: 188px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.service-card {
  min-height: 338px;
  padding: 28px 22px 24px;
  border-radius: var(--llr-radius);
  background: var(--llr-navy);
  color: var(--llr-white);
}

.service-card a {
  color: inherit;
  text-decoration: none;
}

.service-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 42px;
  color: var(--llr-white);
}

.service-icon img {
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}

.service-card h3 {
  margin: 0 0 1.25rem;
  color: var(--llr-white);
  font-size: 1.45rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--llr-white);
}

.service-card li + li {
  margin-top: 0.25rem;
}

.page-main,
.archive-main,
.single-main {
  padding: var(--llr-section-space) 0;
}

.content-wrap {
  width: min(100% - (var(--llr-gutter) * 2), 860px);
  margin-inline: auto;
}

.content-wrap h1 {
  margin-top: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
}

.article-list {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.article-card {
  padding: 1.25rem;
  border: 1px solid var(--llr-grey-border);
  border-radius: var(--llr-radius);
  background: var(--llr-white);
}

.article-card h2 {
  margin: 0 0 0.4rem;
}

.article-meta {
  color: color-mix(in srgb, var(--llr-navy) 56%, var(--llr-grey));
  font-size: 0.94rem;
  font-weight: 700;
}

.llr-contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.llr-contact-form p {
  margin: 0;
}

.llr-contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.llr-contact-form input,
.llr-contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--llr-grey-border);
  border-radius: var(--llr-radius);
  padding: 0.8rem 0.9rem;
  color: var(--llr-navy);
  font: inherit;
}

.llr-contact-form textarea {
  resize: vertical;
}

.llr-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.llr-consent input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin-top: 0.25rem;
}

.llr-form-alert {
  border-left: 5px solid var(--llr-gold);
  padding: 1rem;
  background: color-mix(in srgb, var(--llr-gold) 16%, var(--llr-white));
  color: var(--llr-navy);
  font-weight: 800;
}

.site-footer {
  padding: 40px 0 28px;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-mark img {
  width: 94px;
  height: auto;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--llr-radius);
  background: var(--llr-white);
  color: var(--llr-navy);
  text-decoration: none;
  font-weight: 900;
}

.footer-credit {
  color: var(--llr-white);
  text-align: center;
  font-size: 1rem;
  line-height: 1.3;
}

.footer-credit a {
  color: var(--llr-white);
  font-weight: 800;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 76px;
  }

  .home .site-header {
    position: absolute;
    background: rgb(10 31 68 / 76%);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--llr-navy);
    border-top: 1px solid rgb(255 255 255 / 12%);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    width: min(100% - (var(--llr-gutter) * 2), var(--llr-content-width));
    margin-inline: auto;
    padding: 0.75rem 0 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav a {
    display: block;
    min-height: 48px;
    padding: 0.8rem 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .llr-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
  }

  .hero-content-wrap,
  .hero-content {
    min-height: 100svh;
  }

  .hero-content {
    padding-top: 122px;
    padding-bottom: 38px;
  }

  .hero-panel .hero-content h1 {
    max-width: 660px;
    font-size: clamp(2.6rem, 7.2vw, 3.65rem);
  }

  .hero-panel .hero-content p:not(.hero-eyebrow) {
    max-width: 680px;
    font-size: 1.08rem;
  }

  .llr-button {
    width: 100%;
    min-width: 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 420px) {
  .site-branding img {
    width: 166px;
  }

  .llr-panel-content {
    min-height: 560px;
    padding: 6rem 1.45rem 2rem;
  }

  .hero-content {
    min-height: 100svh;
    padding: 116px 0 30px;
  }

  .hero-eyebrow {
    font-size: 0.76rem;
  }

  .hero-panel .hero-content h1 {
    font-size: clamp(2.6rem, 13vw, 3.35rem);
  }

  .hero-panel .hero-content p:not(.hero-eyebrow) {
    font-size: 1rem;
  }
}
