:root {
  --color-navy: #001450;
  --color-navy-mid: #002864;
  --color-gold: #f0b400;
  --color-gold-dark: #c89600;
  --color-gold-light: #fef3cc;
  --color-teal: #00a08c;
  --color-teal-dark: #008070;
  --color-teal-light: #e0f5f2;
  --color-gray-bg: #f3f4f6;
  --color-gray-text: #6b7280;
  --color-white: #ffffff;
  --color-black-text: #111827;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 18px 60px rgba(0, 20, 80, 0.14);
  --radius: 8px;
  --site-width: min(1180px, calc(100% - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  color: var(--color-black-text);
  background: var(--color-white);
  font-size: 16px;
  line-height: 1.6;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
}

.site-shell {
  width: var(--site-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
}

.brand-logo .custom-logo,
.brand-logo-image {
  width: clamp(120px, 13vw, 180px);
  display: block;
}

.brand-copy {
  display: none;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font: inherit;
  font-weight: 800;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.menu-list,
.menu-fallback,
.footer-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
}

.menu-list a,
.menu-fallback a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 700;
}

.menu-list a:hover,
.menu-fallback a:hover,
.text-link:hover {
  color: var(--color-gold);
}

.lang-switch {
  display: flex;
  gap: 0.3rem;
}

.lang-switch a,
.nav-newsletter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.lang-switch a {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switch .is-active {
  color: var(--color-navy);
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.nav-newsletter {
  color: var(--color-navy);
  background: var(--color-gold);
}

.nav-newsletter:hover {
  background: var(--color-gold-dark);
}

.hero-section {
  color: var(--color-white);
  background:
    linear-gradient(135deg, rgba(0, 20, 80, 0.96), rgba(0, 40, 100, 0.94)),
    url("../img/logo-principal.png") right 10% center / min(46vw, 540px) no-repeat;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: center;
  min-height: min(760px, calc(100vh - 76px));
  padding: 5rem 0 3rem;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--color-gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1,
.page-title {
  font-size: clamp(2.4rem, 4.8rem, 5.2rem);
  font-weight: 900;
}

h1 span {
  color: var(--color-gold);
}

h2 {
  font-size: clamp(1.9rem, 3.2rem, 3.3rem);
  font-weight: 900;
}

h3 {
  font-size: 1.2rem;
  font-weight: 900;
}

.lead {
  max-width: 66ch;
  color: var(--color-gray-text);
  font-size: 1.04rem;
}

.lead-light {
  color: rgba(255, 255, 255, 0.84);
}

.compact {
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button,
.wp-element-button,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-teal);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.button:hover,
.wp-element-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--color-teal-dark);
  transform: translateY(-1px);
}

.button-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.button-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.button-navy:hover {
  background: var(--color-navy-mid);
}

.button-teal {
  background: var(--color-teal);
}

.hero-visual {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: min(100%, 420px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  padding: 0 0 2.2rem;
}

.hero-stats span {
  min-height: 58px;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-weight: 900;
  text-align: center;
}

.content-section,
.page-hero {
  padding: 4rem 0;
}

.page-hero {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.7rem;
}

.four-col-grid,
.three-col-grid,
.card-grid,
.post-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.four-col-grid {
  grid-template-columns: repeat(4, 1fr);
}

.three-col-grid,
.card-grid,
.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 1.5rem;
  align-items: center;
}

.info-card,
.programme-card,
.post-card,
.newsletter-box,
.info-panel,
.sidebar-card,
.audience-list a,
.csa-card {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.info-card p,
.programme-card p,
.post-card p,
.sidebar-card p,
.site-footer p,
.newsletter-fallback p {
  color: var(--color-gray-text);
}

.navy-band {
  color: var(--color-white);
  background: var(--color-navy);
}

.navy-band .programme-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.navy-band .programme-card p {
  color: rgba(255, 255, 255, 0.78);
}

.programme-card span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius);
  background: var(--color-gold-light);
  color: var(--color-navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.text-link {
  color: var(--color-teal);
  text-decoration: none;
  font-weight: 900;
}

.audience-list {
  display: grid;
  gap: 0.75rem;
}

.audience-list a {
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 900;
}

.audience-list a:hover {
  border-color: var(--color-teal);
}

.gold-band {
  background: var(--color-gold-light);
  border-block: 1px solid rgba(200, 150, 0, 0.24);
}

.newsletter-section {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-mid));
}

.newsletter-box {
  background: var(--color-white);
}

.newsletter-fallback {
  display: grid;
  gap: 1rem;
}

.newsletter-box input,
.newsletter-box textarea,
.newsletter-box select,
.prose-shell input,
.prose-shell textarea,
.prose-shell select {
  width: 100%;
  min-height: 44px;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.post-meta {
  margin: 0 0 0.6rem;
  color: var(--color-teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.content-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.empty-state {
  grid-column: 1 / -1;
}

.prose-shell {
  max-width: 840px;
}

.prose-shell > * + * {
  margin-top: 1rem;
}

.prose-shell h2,
.prose-shell h3 {
  margin-top: 2rem;
}

.prose-shell ul,
.prose-shell ol {
  padding-left: 1.2rem;
}

.site-footer {
  color: var(--color-white);
  background: #000c33;
  padding: 3rem 0 1.4rem;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  align-items: start;
}

.footer-logo {
  width: min(230px, 100%);
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 0.8rem;
}

.footer-menu,
.footer-menu .menu,
.footer-menu ul,
.legal-links {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu a,
.legal-links a,
.site-footer a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.legal-links {
  margin-top: 1rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  align-items: start;
}

.pagination-shell {
  margin-top: 1.5rem;
}

.pagination-shell .nav-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pagination-shell .page-numbers {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--color-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-panel.is-open {
    display: flex;
  }

  .menu-list,
  .menu-fallback {
    display: grid;
    gap: 0.3rem;
  }

  .menu-list a,
  .menu-fallback a,
  .nav-newsletter {
    width: 100%;
    justify-content: flex-start;
  }

  .lang-switch {
    margin-top: 0.5rem;
  }
}

@media (max-width: 900px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .hero-layout,
  .split-grid,
  .single-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .four-col-grid,
  .three-col-grid,
  .card-grid,
  .post-grid,
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-layout {
    min-height: auto;
    padding: 3rem 0 2rem;
  }
}

@media (max-width: 560px) {
  :root {
    --site-width: min(1180px, calc(100% - 1.2rem));
  }

  body {
    font-size: 15px;
  }

  .brand-logo .custom-logo,
  .brand-logo-image {
    width: 124px;
  }

  h1,
  .page-title {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .four-col-grid,
  .three-col-grid,
  .card-grid,
  .post-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .button,
  .wp-element-button,
  button[type="submit"],
  input[type="submit"] {
    width: 100%;
  }
}
