/*
Theme Name: Insitu Theme
Theme URI: https://vodjo.com/
Author: Vodjo
Author URI: https://vodjo.com/
Description: Custom WordPress theme for Event Registration System - modern, responsive, and fully integrated with Event Registration Plugin.
Version: 2.2.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: insitu-theme
Tags: events, registration, custom-menu, featured-images, theme-options
*/

/* =====================================================
   DESIGN TOKENS
   ===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-canvas: #f5f7f4;
  --bg-surface: #ffffff;
  --bg-soft: #ebf1ee;
  --ink-title: #14212f;
  --ink-body: #253647;
  --ink-muted: #5e7388;
  --line: #d8e2e5;

  --brand: #438959;
  --brand-strong: #316d43;
  --brand-soft: #d4f5ee;

  --accent: #5da92f;
  --accent-soft: #fbfbf0;

  --success: #15803d;
  --success-soft: #dcfce7;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --danger: #be123c;
  --danger-soft: #ffe4e6;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 25px rgba(10, 32, 46, 0.08);
  --shadow-lift: 0 24px 50px rgba(10, 32, 46, 0.14);

  --space-2xs: 0.4rem;
  --space-xs: 0.7rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 5.5rem;

  --container-max: 1200px;
  --header-height: 86px;

  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
  --font-title: "Space Grotesk", "Avenir Next", sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-body);
  line-height: 1.65;
  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(15, 118, 110, 0.16),
      transparent 35%
    ),
    radial-gradient(
      circle at 92% 14%,
      rgba(200, 133, 42, 0.12),
      transparent 34%
    ),
    var(--bg-canvas);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--ink-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(var(--container-max), calc(100% - 2.4rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1200;
  background: var(--ink-title);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-xs);
}

.skip-link:focus {
  top: 1rem;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: 0.25s ease;
}

.site-header.scrolled {
  background: rgba(245, 247, 244, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(20, 33, 47, 0.08);
  box-shadow: var(--shadow-soft);
}

body.home .site-header:not(.scrolled),
body.front-page .site-header:not(.scrolled),
body.page-template-template-home .site-header:not(.scrolled) {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

body.home .site-header:not(.scrolled) .site-logo,
body.front-page .site-header:not(.scrolled) .site-logo,
body.page-template-template-home .site-header:not(.scrolled) .site-logo,
body.home .site-header:not(.scrolled) .site-logo:hover,
body.front-page .site-header:not(.scrolled) .site-logo:hover,
body.page-template-template-home .site-header:not(.scrolled) .site-logo:hover {
  color: #f8fcff;
}

body.home .site-header:not(.scrolled) .main-nav a,
body.front-page .site-header:not(.scrolled) .main-nav a,
body.page-template-template-home .site-header:not(.scrolled) .main-nav a {
  color: rgba(244, 250, 255, 0.95);
}

body.home .site-header:not(.scrolled) .main-nav a:hover,
body.front-page .site-header:not(.scrolled) .main-nav a:hover,
body.page-template-template-home .site-header:not(.scrolled) .main-nav a:hover,
body.home .site-header:not(.scrolled) .main-nav .current-menu-item a,
body.front-page .site-header:not(.scrolled) .main-nav .current-menu-item a,
body.page-template-template-home .site-header:not(.scrolled) .main-nav .current-menu-item a,
body.home .site-header:not(.scrolled) .main-nav .current_page_item a,
body.front-page .site-header:not(.scrolled) .main-nav .current_page_item a,
body.page-template-template-home .site-header:not(.scrolled) .main-nav .current_page_item a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

body.home .site-header:not(.scrolled) .main-nav .nav-cta a,
body.front-page .site-header:not(.scrolled) .main-nav .nav-cta a,
body.page-template-template-home .site-header:not(.scrolled) .main-nav .nav-cta a {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  box-shadow: none;
}

body.home .site-header:not(.scrolled) .main-nav .nav-cta a:hover,
body.front-page .site-header:not(.scrolled) .main-nav .nav-cta a:hover,
body.page-template-template-home .site-header:not(.scrolled) .main-nav .nav-cta a:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

body.home .site-header:not(.scrolled) .menu-toggle,
body.front-page .site-header:not(.scrolled) .menu-toggle,
body.page-template-template-home .site-header:not(.scrolled) .menu-toggle {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-title);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
}

.site-logo:hover {
  color: var(--ink-title);
}

.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--brand), #14b8a6);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.38);
}

.site-logo__image {
  display: block;
  width: auto;
  max-width: 260px;
  max-height: 62px;
}

.site-logo__text {
  display: inline-block;
  white-space: nowrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--ink-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  color: var(--ink-title);
  background: rgba(20, 33, 47, 0.06);
}

.main-nav .nav-cta a {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding-inline: 1.25rem;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.3);
}

.main-nav .nav-cta a:hover {
  background: var(--brand-strong);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(20, 33, 47, 0.08);
  color: var(--ink-title);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

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

  .main-nav {
    position: fixed;
    top: calc(var(--header-height) + 0.8rem);
    right: 1rem;
    left: 1rem;
    transform: translateY(-20px) scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: 0.24s ease;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 0.7rem;
    box-shadow: var(--shadow-lift);
  }

  .main-nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    justify-content: flex-start;
    min-height: 2.8rem;
    padding-inline: 1rem;
  }

  .main-nav .nav-cta a {
    justify-content: center;
    margin-top: 0.2rem;
  }
}

/* =====================================================
   GLOBAL COMPONENTS
   ===================================================== */
#main-content {
  padding-top: var(--header-height);
}

body.home #main-content,
body.front-page #main-content,
body.page-template-template-home #main-content {
  padding-top: 0;
}

.section {
  padding: var(--space-3xl) 0;
}

.section--events {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.42)
  );
}

.section--steps {
  padding-top: 10 !important;
}

.section-header {
  display: grid;
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

.section-header p {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  margin-inline: auto;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(15, 118, 110, 0.25);
  padding: 0.38rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-strong);
  background: var(--brand-soft);
}

.section-label--inverse {
  margin-inline: 0;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

.btn {
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.28);
}

.btn-primary:hover {
  background: var(--brand-strong);
  color: #fff;
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--ink-title);
  border: 1px solid rgba(20, 33, 47, 0.14);
}

.btn-outline:hover {
  color: var(--ink-title);
  border-color: rgba(20, 33, 47, 0.28);
}

.btn-lg {
  min-height: 3rem;
  padding: 0.5rem 1.35rem;
  font-size: 0.96rem;
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
}

.empty-state {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: clamp(2rem, 5vw, 3.2rem);
}

.empty-state h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.empty-state p {
  color: var(--ink-muted);
  max-width: 56ch;
}

/* =====================================================
   HERO
   ===================================================== */
.hero-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  isolation: isolate;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      114deg,
      rgba(5, 19, 30, 0.8) 0%,
      rgba(10, 31, 44, 0.7) 42%,
      rgba(10, 32, 46, 0.4) 100%
    ),
    radial-gradient(
      circle at 20% 18%,
      rgba(93, 169, 47, 0.26),
      transparent 52%
    );
  z-index: 0;
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: calc(var(--header-height) + 2.2rem) clamp(2.3rem, 6vw, 4rem);
}

.hero-shell__inner {
  width: 100%;
}

.hero-content {
  max-width: min(760px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(9, 24, 36, 0.56);
  backdrop-filter: blur(8px);
  box-shadow: 0 28px 55px rgba(6, 17, 26, 0.34);
  padding: clamp(1.7rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.15rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: max-content;
  border: 1px solid rgba(215, 242, 255, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.84rem;
  background: rgba(218, 248, 228, 0.16);
  color: #e6f9ef;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 1.6s infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.92);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.2);
    opacity: 0.35;
  }

  100% {
    transform: scale(0.92);
    opacity: 0.8;
  }
}

.hero-title {
  font-size: clamp(2rem, 5.3vw, 4rem);
  color: #ffffff;
}

.gradient-text {
  background: linear-gradient(120deg, #ecfef7, #bef264);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: rgba(234, 245, 252, 0.95);
  font-size: clamp(1rem, 1.9vw, 1.2rem);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-note {
  color: rgba(222, 240, 252, 0.84);
  font-size: 0.93rem;
}

.hero-content .btn-outline {
  border-color: rgba(255, 255, 255, 0.52);
  color: #f8fcff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-content .btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.hero-panel-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.hero-panel {
  border: 1px solid rgba(20, 33, 47, 0.1);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(
      170deg,
      rgba(15, 118, 110, 0.12),
      rgba(255, 255, 255, 0.92)
    ),
    var(--bg-surface);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  max-width: 940px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-panel h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.hero-panel ul {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--ink-body);
}

.hero-panel li {
  position: relative;
  padding-left: 1.3rem;
}

.hero-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel__link {
  font-weight: 600;
  color: var(--brand-strong);
}

.hero-panel__link:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero-shell {
    padding-block: calc(var(--header-height) + 1.6rem) 2rem;
  }

  .hero-content {
    max-width: 100%;
  }
}

/* =====================================================
   METRICS
   ===================================================== */
.metrics-section {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.45rem;
}

.metric-card__label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.stat-number {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink-title);
}

@media (max-width: 880px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* =====================================================
   EVENT CARDS
   ===================================================== */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.event-card {
  display: grid;
  grid-template-columns: clamp(320px, 38vw, 460px) minmax(0, 1fr);
  min-height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(20, 33, 47, 0.12);
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: var(--shadow-lift);
}

.event-card__image {
  position: relative;
  display: block;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(145deg, #9cc9c2, #f5d8a8);
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.event-card:hover .event-card__image img {
  transform: scale(1.03);
}

.event-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-title);
  font-size: 2rem;
  color: rgba(20, 33, 47, 0.46);
}

.event-card__title-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 1rem;
  background: linear-gradient(
    150deg,
    var(--event-title-color, #438959),
    #123049 70%
  );
  overflow: hidden;
}

.event-card__title-image::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 72%;
  height: 130%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 62%);
  transform: rotate(-18deg);
}

.event-card__title-image > span {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border-radius: var(--radius-pill);
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.event-card__badge--open {
  background: var(--success);
}

.event-card__badge--full {
  background: var(--warning);
}

.event-card__badge--closed {
  background: var(--danger);
}

.event-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  padding: 1.15rem 1.3rem;
  min-width: 0;
}

.event-card__kicker {
  font-size: 0.79rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-strong);
  margin-bottom: 0.4rem;
}

.event-card__title {
  font-size: 1.2rem;
  min-height: 0;
  margin-bottom: 0.5rem;
}

.event-card__title a {
  color: var(--ink-title);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__title a:hover {
  color: var(--brand-strong);
}

.event-card__desc {
  color: var(--ink-muted);
  font-size: 0.93rem;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.95rem;
}

.event-card__desc--placeholder {
  opacity: 0.76;
}

.event-card__meta {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.event-card__meta li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  border-bottom: 1px dashed rgba(37, 54, 71, 0.17);
  padding-bottom: 0.4rem;
  font-size: 0.88rem;
}

.event-card__meta span {
  color: var(--ink-muted);
  flex: 0 0 auto;
}

.event-card__meta strong {
  color: var(--ink-title);
  text-align: right;
  font-weight: 600;
  max-width: 68%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.event-card__price-rows {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.event-card__price-row {
  display: block;
}

.event-card__meta-value--location {
  display: block;
  flex: 0 1 82%;
  max-width: 82%;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.home .event-card__meta-value--location,
body.page-template-template-home .event-card__meta-value--location {
  flex-basis: 88%;
  max-width: 88% !important;
  font-size: 0.76rem;
  line-height: 1.2;
}

.event-card__capacity {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.capacity-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #dbe4e8;
  overflow: hidden;
}

.capacity-track span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.event-card__capacity small {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.event-card__footer {
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.event-card__footer .btn {
  width: auto;
  min-width: 180px;
}

@media (max-width: 860px) {
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__image {
    height: 220px;
    min-height: 220px;
  }

  .event-card__body {
    padding: 1rem;
  }

  .event-card__footer .btn {
    width: 100%;
  }
}

/* =====================================================
   STEPS + CTA
   ===================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.step-number {
  width: max-content;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: #7a4a18;
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 0.22rem 0.56rem;
}

.step-card h3 {
  font-size: 1.1rem;
}

.step-card p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.cta-section {
  padding: 0 0 var(--space-3xl);
}

.cta-shell {
  background:
    radial-gradient(
      circle at 15% 25%,
      rgba(255, 255, 255, 0.2),
      transparent 40%
    ),
    linear-gradient(120deg, #12405d, #136f6d 65%, #c3cf23);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-lift);
  color: #f8fafc;
  padding: clamp(1.4rem, 4vw, 2.3rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  align-items: center;
}

.cta-shell h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
}

.cta-shell p {
  color: rgba(248, 250, 252, 0.9);
}

.cta-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cta-actions .btn-outline {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-shell {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

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

/* =====================================================
   PAGE HERO + CONTENT
   ===================================================== */
.page-hero {
  padding: clamp(2.2rem, 5vw, 3.3rem) 0;
}

.page-hero .container {
  display: grid;
  gap: 0.8rem;
  text-align: center;
  justify-items: center;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4.1vw, 3rem);
}

.page-hero p {
  max-width: 64ch;
  color: var(--ink-muted);
}

.page-hero--compact {
  padding-bottom: 2rem;
}

.page-content {
  padding: 0 0 var(--space-3xl);
}

.page-content .container {
  max-width: 1040px;
}

.page-content--wide .container {
  max-width: var(--container-max);
}

.content-shell {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.2rem, 4vw, 2rem);
}

/* =====================================================
   EVENT DETAIL
   ===================================================== */
.event-detail-page {
  padding: 1.2rem 0 var(--space-3xl);
}

.event-detail-hero {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.event-detail-hero__media {
  min-height: 280px;
  background: linear-gradient(145deg, #9cc9c2, #f5d8a8);
}

.event-detail-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-hero__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: rgba(20, 33, 47, 0.38);
}

.event-detail-hero__title-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  background: linear-gradient(
    150deg,
    var(--event-title-color, #438959),
    #123049 72%
  );
  overflow: hidden;
}

.event-detail-hero__title-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.2), transparent 45%),
    radial-gradient(circle at 85% 78%, rgba(255, 255, 255, 0.12), transparent 48%);
}

.event-detail-hero__title-stack {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: clamp(1.45rem, 2.7vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.event-detail-hero__title-line {
  display: block;
}

.event-detail-hero__title-divider {
  width: min(100%, 260px);
  height: 1px;
  margin: 0.45rem 0;
  background: rgba(255, 255, 255, 0.55);
}

.event-detail-hero__content {
  display: grid;
  align-content: center;
  gap: 0.9rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.event-detail-hero__content h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
}

.event-detail-hero__lead {
  color: var(--ink-muted);
}

.event-detail-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.event-detail-hero__facts1 {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.55rem;
}

.event-detail-hero__facts div {
  border: 1px solid rgba(20, 33, 47, 0.1);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.65rem;
  background: var(--bg-soft);
}

.event-detail-hero__facts1 div {
  border: 1px solid rgba(20, 33, 47, 0.1);
  border-radius: var(--radius-xs);
  padding: 0.6rem 0.65rem;
  background: var(--bg-soft);
}

.event-detail-hero__facts span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.event-detail-hero__facts1 span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.event-detail-hero__facts strong {
  color: var(--ink-title);
  font-size: 0.88rem;
  font-weight: 600;
}

.event-detail-hero__facts1 strong {
  color: var(--ink-title);
  font-size: 0.88rem;
  font-weight: 600;
}

.event-status-chip {
  width: max-content;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.68rem;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.event-status-chip--open {
  color: #14532d;
  background: var(--success-soft);
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.event-status-chip--full {
  color: #92400e;
  background: var(--warning-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.event-status-chip--closed {
  color: #9f1239;
  background: var(--danger-soft);
  border: 1px solid rgba(190, 18, 60, 0.25);
}

.event-detail-layout {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.event-detail-panel,
.registration-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.event-detail-panel {
  padding: clamp(1.1rem, 4vw, 1.7rem);
  display: grid;
  gap: 1.4rem;
}

.event-detail-panel h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.event-detail__info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.info-card {
  border: 1px solid rgba(20, 33, 47, 0.1);
  border-radius: var(--radius-xs);
  padding: 0.75rem;
  background: var(--bg-soft);
}

.info-card__label {
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.74rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.info-card__value {
  color: var(--ink-title);
  font-size: 0.95rem;
  font-weight: 600;
}

.event-detail__description {
  display: grid;
  gap: 0.7rem;
}

.event-detail__description h3 {
  font-size: 1.2rem;
}

.event-detail__description .content-body {
  color: var(--ink-body);
}

.event-detail__schedule-list {
  display: grid;
  gap: 0.55rem;
}

.event-detail__schedule-item {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(20, 33, 47, 0.1);
  background: var(--bg-soft);
  color: var(--ink-title);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.registration-card {
  padding: clamp(1rem, 3vw, 1.45rem);
  position: static;
}

.registration-card__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.registration-card__inner--form-only {
  gap: 0;
}

.registration-card__form-area {
  width: 100%;
  min-width: 0;
}

@media (min-width: 861px) {
  .registration-card__inner {
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 2rem;
    align-items: start;
  }

  .registration-card__inner--form-only {
    grid-template-columns: 1fr;
  }

  .registration-card__header {
    border-bottom: 0 !important;
    border-right: 1px dashed rgba(20, 33, 47, 0.2);
    padding-bottom: 0 !important;
    padding-right: 2rem;
    margin-bottom: 0 !important;
  }
}

.registration-card__header {
  border-bottom: 1px dashed rgba(20, 33, 47, 0.2);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.5rem;
}

.registration-card__header h2 {
  font-size: 1.35rem;
}

.registration-card__header p,
.registration-card__seats {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.registration-card__seats {
  font-weight: 600;
}

.status-panel {
  border-radius: var(--radius-xs);
  padding: 0.95rem;
  display: grid;
  gap: 0.35rem;
}

.status-panel h3 {
  font-size: 1rem;
}

.status-panel p {
  font-size: 0.9rem;
}

.status-panel--warning {
  background: var(--warning-soft);
  border: 1px solid rgba(180, 83, 9, 0.25);
  color: #92400e;
}

.status-panel--danger {
  background: var(--danger-soft);
  border: 1px solid rgba(190, 18, 60, 0.25);
  color: #9f1239;
}

@media (max-width: 860px) {
  .event-detail-hero {
    grid-template-columns: 1fr;
  }

  .event-detail-hero__facts {
    grid-template-columns: 1fr;
  }

  .event-detail__info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .event-card__image {
    height: 205px;
    min-height: 205px;
  }
}

/* =====================================================
   TOOL PAGES + SHORTCODE WRAPPER
   ===================================================== */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.tool-intro,
.shortcode-shell {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.tool-intro {
  display: grid;
  gap: 0.8rem;
}

.tool-intro h2 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.tool-intro ol {
  list-style: decimal;
  margin-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--ink-muted);
}

.shortcode-shell--register {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: none;
}

.shortcode-shell :is(form, .evt-form, .evt-register-form) {
  display: grid;
  gap: 0.7rem;
}

.shortcode-shell--register .evt-register-form-wrapper,
.shortcode-shell--register #evt-register-wrapper,
.shortcode-shell--register #evt-register-form,
.shortcode-shell--register .evt-form,
.shortcode-shell--register .evt-multistep-form,
.shortcode-shell--register .evt-form-step,
.shortcode-shell--register .evt-step-indicator,
.shortcode-shell--register .evt-form-navigation,
.shortcode-shell--register .evt-form-group {
  width: 100%;
  max-width: none !important;
  min-width: 0;
}

.shortcode-shell--register #evt-register-form,
.shortcode-shell--register .evt-form,
.shortcode-shell--register .evt-multistep-form {
  display: block;
}

.shortcode-shell :is(label) {
  font-size: 0.86rem;
  color: var(--ink-muted);
  font-weight: 600;
}

.shortcode-shell :is(input, select, textarea) {
  width: 100%;
  border: 1px solid rgba(20, 33, 47, 0.2);
  border-radius: 12px;
  min-height: 2.65rem;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-title);
  background: #fff;
}

.shortcode-shell :is(input:focus, select:focus, textarea:focus) {
  outline: none;
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.shortcode-shell :is(button, input[type="submit"], .button, .btn) {
  border: 0;
  border-radius: var(--radius-pill);
  min-height: 2.7rem;
  padding: 0.5rem 1.1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.shortcode-shell
  :is(button:hover, input[type="submit"]:hover, .button:hover, .btn:hover) {
  background: var(--brand-strong);
}

.shortcode-shell :is(table) {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem;
}

.shortcode-shell :is(th, td) {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(20, 33, 47, 0.08);
  text-align: left;
}

.shortcode-shell :is(th) {
  background: var(--bg-soft);
  color: var(--ink-title);
}

.shortcode-shell :is(.notice, .alert, .message, .evt-alert) {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: var(--bg-soft);
  border: 1px solid rgba(20, 33, 47, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .tool-layout {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   POSTS + WORDPRESS CONTENT
   ===================================================== */
.post-list {
  display: grid;
  gap: 0.9rem;
}

.post-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: clamp(1rem, 3vw, 1.35rem);
  display: grid;
  gap: 0.75rem;
}

.post-card h2 {
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
}

.post-card h2 a {
  color: var(--ink-title);
}

.navigation.posts-navigation {
  margin-top: 1rem;
}

.navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.navigation .nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(20, 33, 47, 0.14);
  background: var(--bg-surface);
  color: var(--ink-title);
  font-size: 0.88rem;
  font-weight: 600;
}

.navigation .nav-links a:hover {
  border-color: rgba(20, 33, 47, 0.32);
}

.entry-content {
  color: var(--ink-body);
}

.entry-content p {
  margin-bottom: 0.9rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
}

.entry-content :is(ul, ol) {
  padding-left: 1.2rem;
  margin-bottom: 0.9rem;
}

.entry-content img,
.wp-block-image img {
  border-radius: var(--radius-sm);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  margin-top: var(--space-2xl);
  padding: var(--space-2xl) 0 1.4rem;
  background: linear-gradient(130deg, #132a3c, #0e4f5d 50%, #2f596f);
  color: rgba(240, 248, 252, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1.1rem;
}

.footer-brand {
  display: grid;
  gap: 0.85rem;
}

.footer-brand .site-logo {
  color: #fff;
}

.footer-brand .site-logo .logo-icon {
  box-shadow: none;
}

.footer-brand .site-logo__image {
  max-height: 48px;
}

.footer-brand p {
  color: rgba(240, 248, 252, 0.82);
  max-width: 40ch;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.footer-badges span {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.25rem 0.6rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-col h4 {
  margin-bottom: 0.65rem;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.footer-col ul,
.footer-col .menu {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-col a {
  color: rgba(240, 248, 252, 0.85);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(240, 248, 252, 0.8);
}

.footer-signature {
  color: rgba(240, 248, 252, 0.94);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

/* =====================================================
   REVEAL ANIMATIONS
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(2) {
  transition-delay: 0.08s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(4) {
  transition-delay: 0.24s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(5) {
  transition-delay: 0.32s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(6) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(7) {
  transition-delay: 0.48s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(8) {
  transition-delay: 0.56s;
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   RESPONSIVE UTILITIES
   ===================================================== */
@media (max-width: 640px) {
  .container {
    width: min(var(--container-max), calc(100% - 1.4rem));
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    flex: 1;
  }
}

/* WP admin bar spacing fix */
body.admin-bar .site-header {
  top: 32px;
}

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