/* ============================================
   GLOBAL + TOKENS
   https://unsplash.com/photos/green-linear-leafed-plants-jqgsM3B9Fpo banner img
   ============================================ */

:root {
  /* Backgrounds */
  --bg-body: #0e0500;
  --bg-panel: #111318;
  --bg-card:#0c0f14;
  --bg-card-theater: #041601;
  --bg-card-shop:#161301;
  --bg-card-consult:#151821;
  --bg-card-border: #160101;
  --bg-agenda: #160101;

  /* Text */
  --text-main: #f5f5f5;
  --text-muted: #c3cad8;
  --text-meta: #b8bfd4;
  --text-on-accent: #000;

  /* Accent / Brand */
  --accent: #7f8cff;
  --accent-soft: #9ca3ff;
  --color-btn: #c8cbf3;

  /* Special */
  --price-gold: #f6e07f;
}

/* GLOBAL RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-body);
  background-image: url(../img/brown-wooden-textured-flooring-background_small.jpg);
  width: 100%;
  
  color: var(--text-main);
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

/* ============================================
   GENERIC UTILITIES
   ============================================ */

/* General container shell */
.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Extra bottom spacing variant for shells */
.shell--spaced {
  padding-bottom: 2.5rem;
}

/* Panels / boxes */
.panel {
  background: var(--bg-panel);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel--padded {
  margin-top:1rem;
  padding: 1.75rem 1.5rem 2.5rem;
}

.panel--compact {
  padding: 1.5rem;
}

/* Text utilities */
.text-muted {
  color: var(--text-muted);
}

.text-meta {
  font-size: 0.85rem;
  color: var(--text-meta);
}

/* Shared page title style */
.page-title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-btn);
  background: rgb(0,0,0,0.9);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  align-self: flex-start;
}

.btn:hover {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* ============================================
   UNIFIED CARD SYSTEM
   ============================================ */

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--bg-card); /* fallback if no background-image */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 3px solid  var(--bg-card-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: box-shadow 0.2s, background 0.2s;
}

.theater{
  background-color: var(--bg-card-theater);
}

.shop{
  background-color: var(--bg-card-shop);
}

.consult{
  background-color: var(--bg-card-consult);
}


.card:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.home-grid .card,
.item-list .card {
  height: 100%;
}

/* Inner clickable area */
.card__inner {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  height: 100%;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* Content block */
.card__content {
  margin-top: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Title */
.card__title {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

/* Text */
.card__text {
  margin: 0;
  font-size: 0.95rem;
  color: #d4d8e3;
}

/* Meta line */
.card__meta {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-meta);
}

/* CTA inside cards */
.card__content .btn {
  margin-top: 0.75rem;
}

.card__image {
  margin: 0 0 1rem 0;
}

.card__image img {
  display: block;
  width: 100%;
  max-height: 140px;      /* slightly smaller preview area */
  object-fit: contain;    /* show full image inside the box */
  border-radius: 0.75rem;
}

/* ============================================
   CARD CONTEXT MODIFIERS
   ============================================ */

/* Home cards (same structure, slightly larger typography if desired) */
.card--home .card__title {
  font-size: 1.35rem;
}

/* Program (workshops, theater, consultancy) */
.card--program {
  /* uses base card defaults */
}

/* Shop cards (price + buy button) */
.card--shop .card__price {
  margin-top: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--price-gold);
}

/* Agenda cards (if needed later) */
.card--agenda {
  /* placeholder for customization */
}

.card__meta-list {
  margin: 0.75rem 0 1rem 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
  opacity: .9;
}

.card__meta-list li {
  margin: 0rem 0;
  line-height: 1;
  display: flex;
  flex-direction: column;   /* stack label above value */
}

/* match the sidebar style */
.card__meta-list .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 0.1rem;
}

.card__meta-list .value {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

/* ============================================
   RESPONSIVE CARD TWEAKS
   ============================================ */

@media (max-width: 800px) {
  .card {
    min-height: 160px;
  }
}

/* =========================
   HERO BASE
   ========================= */

.hero {
  padding: 2rem 0 2.5rem;
  background-color: #111318;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 10px rgba(0,0,0,0.4);
}

.hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Titles & subtitles */

.hero__title {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.hero__title--brand {
  /* main brand heading */
}

/* Hide brand only in triplet layouts on mobile */
@media (max-width: 800px) {
  .hero--triplet .hero__col--brand {
    display: none !important;
  }
}

.hero__subtitle {
  margin: 0;
  font-size: 1rem;
}

/* Page block = stronger, more visible */
.hero__subtitle--page {
  color: var(--text-main);
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  margin-left: 1.25rem;
}

/* Brand block = softer by default */
.hero__subtitle--brand {
  color: var(--text-muted);
  opacity: 0.95;
}

/* Small "kicker" label (page title block) */
.hero__title_page {
  margin: 0 0 0.5rem 1rem;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* Logo */
.hero__logo {
  margin-bottom: 0;
}

.hero__logo img {
  display: block;
  max-height: 100px;
  width: auto;
}

/* =========================
   HERO ROW LAYOUT
   ========================= */

.hero--row .hero__inner,
.hero__inner--row {
  display: flex;
  flex-wrap: nowrap;          /* ALWAYS inline, never stacking blocks */
  gap: 2rem;
  align-items: flex-end;
  justify-content: flex-start; /* base: everything flows from left */
}

.hero__col {
  min-width: 0;
}

/* Default: all blocks sized by content */
.hero__col--logo,
.hero__col--page,
.hero__col--brand {
  flex: 0 0 auto;
}

/* =========================
   LAYOUT-SPECIFIC ALIGNMENT
   ========================= */

/* 1) logo_brand: logo LEFT, brand LEFT */
.hero--logo_brand .hero__inner {
  justify-content: flex-start;
}

/* 2) brand_logo: brand LEFT, logo RIGHT */
.hero--brand_logo .hero__inner {
  justify-content: space-between;
}

/* 3) logo_page_brand: logo LEFT, page LEFT, brand RIGHT */
.hero--logo_page_brand .hero__inner {
  justify-content: flex-start;
}

/* push brand to the far right */
.hero--logo_page_brand .hero__col--brand {
  margin-left: auto;
}

/* 4) page_brand_logo: page LEFT, brand RIGHT, logo RIGHT (brand+logo together) */
.hero--page_brand_logo .hero__inner {
  justify-content: flex-start;
}

/* move brand (and everything after it = logo) to right side */
.hero--page_brand_logo .hero__col--brand {
  margin-left: auto;
}

/* =========================
   3-COLUMN SIZE TWEAK
   (logo_page_brand & page_brand_logo)
   ========================= */

.hero--3cols .hero__title--brand {
  font-size: clamp(1.6rem, 3vw, 2rem); /* smaller than default */
}

.hero--3cols .hero__subtitle--brand {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* =========================
   HOME SHELL (CARDS + CALENDAR)
   ========================= */

/* One shared frame that controls width for BOTH the 3 cards and the agenda */
.home-shell {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 2.5rem;
}

/* THREE CARDS */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* CALENDAR STRIP */
.home-agenda-strip {
  margin-top: 2rem;
  width: 100%;
  background: var(--bg-agenda);
  border-radius: 1rem;
  padding: 1rem 1.5rem 2.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}

.home-agenda-text {
  flex: 1 1 auto;
}

.home-agenda-strip h2 {
  margin: 0 0 0.5rem;
}

/* stacked agenda items */
.home-agenda-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.home-agenda-item__link {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-main);
}

.home-agenda-item__link:hover {
  color: var(--accent-soft);
}

.home-agenda-item__date {
  font-weight: 600;
  color: var(--accent-soft);
  min-width: 4.5ch;
}

.home-agenda-item__title {
  font-weight: 400;
}

.home-agenda-item__meta {
  color: var(--text-meta);
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.home-agenda-empty {
  margin: 0.75rem 0 0;
}

.home-agenda-cta {
  display: flex;
  align-items: center;
}

.home-agenda-btn {
  margin-top: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-agenda-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}


/*-------------------
  FOOTER STYLES
  -------------------*/

.site-footer {
  margin-top: 4rem;
  padding: 0.5rem;
  background: var(--bg-panel);
  color: #e0e0e0;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-column {
  flex: 0 1 auto;
}

.footer-legal {
  text-align: right;
}

/* Links in footer */
.site-footer a {
  color: var(--accent-soft);
  text-decoration: none;
}

.footer-links{
  margin: 0;
  padding: 0;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Stack nicely on small screens */
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    gap: 0.5rem;
  }

  .footer-legal {
    text-align: left;
  }
}


/* =========================
   SHARED LIST PAGES
   (Workshops, Theatre, Shop)
   ========================= */

/* Main container for list pages */
.site-main.page-list {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* Header text on list pages */
.site-main.page-list .page-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.site-main.page-list .page-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Grid that holds the cards */
.item-list {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* GRID LAYOUT HELPERS (for PHP to opt into) */
.item-list--1col {
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .item-list--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Fixed-width cards grid (shop-like layout) */
.item-list--fixed {
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
}

/* Existing meta line for basic details (participants / duration) */
.item-meta {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--text-meta);
}

/* SHOP VARIATION (price) */
.item-price {
  margin: 0rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--price-gold);
}

/* Shop: fixed card width, many per row, centred */
.page-shop .item-list {
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px));
}
/* =========================
   PROGRAM ITEM DETAIL PAGE
   (Theatre, Consultancy, etc.)
   ========================= */

/* main wrapper for single program pages */
.single-program {
  margin: 0;
  padding: 0 0 3rem;          /* no top padding – hero handles top spacing */
}

/* article container */
.program-detail {
  padding-top: 2.5rem;   /* space below hero + side padding */
}

/* Main image */
.program-detail-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  margin-bottom: 2rem;
}

/* Content + side meta */
.program-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1.1fr);
  gap: 2.5rem;
}

/* Main text */
.program-detail-content {
  line-height: 1.6;
}

.program-detail-content p {
  margin-bottom: 1rem;
}

/* Meta box */
.program-detail-meta {
  padding: 1.5rem;
  background: var(--bg-panel);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.program-detail-meta h2 {
  margin: 0;
  font-size: 1.1rem;
}

.program-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.program-detail-list li {
  display: flex;
  flex-direction: column;
}

.program-detail-list .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-soft);
  margin-bottom: 0.15rem;
}

.program-detail-list .value {
  font-size: 0.95rem;
}

/* Responsive: stack blocks on small screens */
@media (max-width: 900px) {
  .program-detail-main {
    grid-template-columns: 1fr;
  }

  .program-detail-image img {
    height: 220px;
  }
}

.back-bar {
  max-width: 1100px;
  margin: 0 auto 0 auto;
  padding: 0.75rem 1.5rem 0;
  display: flex;
  justify-content: center;
}

.btn--back {
  font-size: 0.8rem;
  opacity: 0.8;
}

.btn--back:hover {
  opacity: 1;
}

/* Contact page */

.page-contact .contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080505;
  color: var(--text-main);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
}

/* Hide honeypot from humans, keep for bots */
.contact-form__field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Notices (success/error) */
.contact-notice {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.contact-notice--success {
  background: rgba(0, 200, 120, 0.12);
  border: 1px solid rgba(0, 200, 120, 0.45);
}

.contact-notice--error {
  background: rgba(200, 60, 60, 0.14);
  border: 1px solid rgba(200, 60, 60, 0.5);
}

.contact-notice__list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
