/*
Theme Name: SynAmp
Theme URI: https://synamp.eu
Author: DBS Foundation
Description: Official theme for SynAmp — Synergy Amplified. Creative Europe CREA-CULT-2025-COOP-2.
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: synamp
*/

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --black:  #0f0f0f;
  --white:  #ffffff;
  --yellow: #FFE65F;
  --green:  #6EC396;
  --orange: #F5825F;
  --pink:   #DEB0D2;
  --gray:   #F2F1EE;
  --mid:    #888888;
  --border: #E0E0E0;
  --ff: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(0,0,0,.08);
  --max: 1160px;
  --nav-h: 60px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff); background: var(--white); color: var(--black); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 { font-size: clamp(34px,5vw,62px); font-weight: 900; letter-spacing:-.03em; line-height:1.05; }
h2 { font-size: clamp(24px,3.5vw,40px); font-weight: 800; letter-spacing:-.025em; line-height:1.1; }
h3 { font-size: clamp(17px,2.5vw,24px); font-weight: 700; letter-spacing:-.015em; }
h4 { font-size: 16px; font-weight: 700; }
p  { line-height: 1.7; color: #444; }
.accent { color: var(--orange); }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.section    { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section--dark { background: var(--black); color: var(--white); border-color: #222; }
.section--gray { background: var(--gray); }
.eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mid);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::after { content:''; flex:1; max-width:60px; height:1px; background:var(--border); }

/* ── EU BAR ──────────────────────────────────────────────── */
.eu-bar {
  background: var(--black);
  border-bottom: 1px solid #1a1a1a;
  padding: 7px 0;
}
.eu-bar__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; gap: 10px;
}
.eu-bar__flag { display: flex; align-items: center; gap: 8px; }
.eu-bar__flag svg { width: 26px; height: 18px; flex-shrink: 0; }
.eu-bar__text { font-size: 10px; font-weight: 600; letter-spacing: .05em; color: rgba(255,255,255,.5); white-space: nowrap; }

/* ── NAVIGATION ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 200; background: var(--white); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; height: var(--nav-h); max-width: var(--max); margin: 0 auto; padding: 0 40px; gap: 4px; }
.nav__logo { display: flex; align-items: center; gap: 9px; margin-right: 28px; flex-shrink: 0; }
.nav__logo svg { width: 32px; height: 32px; }
.nav__logo-text { font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--black); }
.nav__links { display: flex; align-items: center; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav__links a { font-size: 12.5px; font-weight: 500; color: #555; padding: 6px 11px; border-radius: 7px; transition: all .15s; white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { background: var(--gray); color: var(--black); }
.nav__links .has-sub { position: relative; }
.nav__links .has-sub > a::after { content: ' ▾'; font-size: 9px; }
.nav__sub { position: absolute; top: calc(100% + 4px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; min-width: 190px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s; }
.nav__links .has-sub:hover .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a { display: block; padding: 8px 12px; font-size: 13px; color: #444; border-radius: 6px; }
.nav__sub a:hover { background: var(--gray); color: var(--black); }
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--black); border-radius: 2px; transition: all .25s; }

/* ── OPEN CALL BANNER ────────────────────────────────────── */
.oc-banner { background: var(--yellow); border-bottom: 2px solid #e0c400; padding: 11px 0; }
.oc-banner__inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.oc-banner__label { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #5a4000; }
.oc-banner__title { font-size: 14px; font-weight: 600; color: var(--black); }
.oc-banner__cta { font-size: 11px; font-weight: 700; background: var(--black); color: var(--yellow); padding: 8px 16px; border-radius: 20px; white-space: nowrap; }
.oc-banner__cta:hover { background: #333; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 11px 22px; border-radius: 24px; transition: all .15s; }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: #2a2a2a; }
.btn--outline { border: 2px solid var(--black); color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--link { padding: 11px 0; border-radius: 0; border-bottom: 1.5px solid var(--black); font-size: 13px; }

/* ── HERO ────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(90vh - var(--nav-h) - 33px); border-bottom: 1px solid var(--border); }
.hero__content { padding: 64px 52px 64px 0; display: flex; flex-direction: column; justify-content: center; }
.hero__title { margin: 16px 0 20px; }
.hero__body { font-size: 16px; color: #555; max-width: 460px; margin-bottom: 36px; line-height: 1.7; }
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__stats { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat__num { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.stat__label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); margin-top: 2px; }
.hero__visual { background: var(--black); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__visual-label { position: absolute; bottom: 24px; left: 24px; font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.2); }

/* ── CARDS ───────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--gray); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.03); }
.card__body { padding: 22px; }
.card__tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; margin-bottom: 10px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card__excerpt { font-size: 13px; color: #666; line-height: 1.6; }
.card__date { font-size: 11px; color: var(--mid); margin-top: 14px; }
/* Category colours */
.card--opencall  { border-top: 3px solid var(--yellow); }
.card--residency { border-top: 3px solid var(--green); }
.card--tour      { border-top: 3px solid var(--orange); }
.card--montage   { border-top: 3px solid var(--pink); }
.card--milestone { border-top: 3px solid var(--black); }
.card--cblab     { border-top: 3px solid var(--green); }
.card--meeting   { border-top: 3px solid var(--pink); }
.tag--opencall   { background: var(--yellow); color: #5a4000; }
.tag--residency  { background: var(--green);  color: #0a3d24; }
.tag--tour       { background: var(--orange); color: #fff; }
.tag--montage    { background: var(--pink);   color: #4a1038; }
.tag--milestone  { background: var(--black);  color: #fff; }
.tag--cblab      { background: var(--green);  color: #0a3d24; }
.tag--meeting    { background: var(--pink);   color: #4a1038; }

/* ── GRIDS ───────────────────────────────────────────────── */
.news-grid         { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.partners-grid     { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.partners-grid > .partner-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.participants-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.works-grid        { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ── PARTNER CARD ────────────────────────────────────────── */
.partner-card { background: var(--gray); border-radius: var(--radius); overflow: hidden; transition: background .2s; display: flex; flex-direction: column; }
.partner-card:hover { background: #eae9e5; }
.partner-card__photo { aspect-ratio: 16/9; overflow: hidden; background: var(--border); display: block; }
.partner-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.partner-card__body { padding: 20px; }
.partner-card__logo { height: 44px; display: flex; align-items: center; margin-bottom: 14px; }
.partner-card__logo img { max-height: 38px; max-width: 140px; width: auto; object-fit: contain; }
.partner-card__logo-text { font-size: 13px; font-weight: 800; color: var(--black); }
.partner-card__name { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.partner-card__country { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--orange); margin-bottom: 10px; }
.partner-card__bio { font-size: 12px; color: #555; line-height: 1.65; margin-bottom: 14px; }
.partner-card__link { font-size: 12px; font-weight: 700; color: var(--orange); }
.partner-card--associated { opacity: .8; border: 1px dashed var(--border); background: var(--white); }

/* ── PARTICIPANT TABS ────────────────────────────────────── */
.pt-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.pt-tab { font-size: 12px; font-weight: 600; padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border); background: var(--white); color: #555; cursor: pointer; transition: all .15s; }
.pt-tab.active, .pt-tab:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ── PARTICIPANT CARD ────────────────────────────────────── */
.pt-card { background: var(--gray); border-radius: var(--radius); padding: 18px; }
.pt-card__avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; margin-bottom: 12px; overflow: hidden; }
.pt-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pt-card__name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.pt-card__role { font-size: 11px; color: var(--mid); margin-bottom: 7px; }
.pt-card__country { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }

/* ── TOUR ────────────────────────────────────────────────── */
.stops-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.stop-card { background: #141414; padding: 20px 16px; cursor: pointer; transition: background .2s; display: block; }
.stop-card:hover { background: #1c1c1c; }
.stop-card__num { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--orange); margin-bottom: 6px; }
.stop-card__city { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 3px; }
.stop-card__country { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 12px; }
.stop-card__partner { font-size: 11px; color: rgba(255,255,255,.4); }
.stop-card__date { font-size: 11px; font-weight: 600; color: var(--yellow); margin-top: 6px; }

/* ── WORKS ───────────────────────────────────────────────── */
.work-card { background: var(--gray); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; transition: background .2s; cursor: pointer; }
.work-card:hover { background: #eae9e5; }
.work-card__num { font-size: 30px; font-weight: 900; color: var(--orange); line-height: 1; flex-shrink: 0; }
.work-card__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.work-card__duo { font-size: 13px; color: #666; margin-bottom: 4px; }
.work-card__country { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); }

/* ── PAGE HERO ───────────────────────────────────────────── */
.page-hero { padding: 56px 0 44px; border-bottom: 1px solid var(--border); }
.page-hero--dark { background: var(--black); }
.page-hero--dark h1 { color: var(--white); }
.page-hero--dark .eyebrow { color: rgba(255,255,255,.35); }
.page-hero--dark .eyebrow::after { background: rgba(255,255,255,.1); }
.page-hero__sub { font-size: 16px; color: #555; max-width: 600px; margin-top: 16px; line-height: 1.7; }
.page-hero--dark .page-hero__sub { color: rgba(255,255,255,.5); }

/* ── SINGLE POST ─────────────────────────────────────────── */
.post-content { font-size: 16px; line-height: 1.8; color: #333; max-width: 760px; }
.post-content p { margin-bottom: 1.4em; }
.post-content h2, .post-content h3 { margin: 2em 0 .6em; color: var(--black); }
.post-content strong { font-weight: 700; color: var(--black); }
.post-content a { color: var(--orange); text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--black); color: var(--white); }
.footer-top { padding: 52px 0 36px; border-bottom: 1px solid #1a1a1a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand__logo { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-brand__name { font-size: 15px; font-weight: 800; color: var(--white); }
.footer-brand__desc { font-size: 12px; color: rgba(255,255,255,.35); line-height: 1.6; max-width: 260px; margin-bottom: 18px; }
.footer-eu { display: flex; align-items: center; gap: 8px; }
.footer-eu svg { width: 24px; height: 17px; }
.footer-eu__text { font-size: 10px; color: rgba(255,255,255,.3); line-height: 1.4; }
.footer-nav h4 { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-nav a:hover { color: var(--white); }
.footer-partners { display: flex; gap: 6px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-partner-chip { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.3); padding: 4px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
.footer-disclaimer { padding: 16px 0; }
.footer-disclaimer p { font-size: 10px; color: rgba(255,255,255,.2); line-height: 1.6; max-width: 680px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; gap: 12px; }
.footer-bottom__copy { font-size: 11px; color: rgba(255,255,255,.2); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.4); font-size: 13px; transition: all .15s; }
.footer-social a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── COOKIE BANNER ───────────────────────────────────────── */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: rgba(15,15,15,.97); border-top: 1px solid #222; padding: 14px 0; transform: translateY(100%); transition: transform .35s ease; }
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner { max-width: var(--max); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-banner__text { font-size: 13px; color: rgba(255,255,255,.55); flex: 1; min-width: 200px; line-height: 1.55; }
.cookie-banner__text a { color: var(--yellow); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn { font-size: 13px; font-weight: 700; padding: 9px 18px; border-radius: 20px; cursor: pointer; font-family: inherit; border: none; }
.cookie-btn--accept { background: var(--yellow); color: var(--black); }
.cookie-btn--decline { background: transparent; color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.15) !important; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stops-grid { grid-template-columns: repeat(2,1fr); }
  .participants-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero__visual { min-height: 280px; }
  .hero__content { padding: 48px 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .news-grid, .partners-grid, .works-grid { grid-template-columns: 1fr; }
  .participants-grid { grid-template-columns: repeat(2,1fr); }
  .stops-grid { grid-template-columns: repeat(2,1fr); }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 20px; z-index: 100; box-shadow: var(--shadow); }
  .nav__burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .eu-bar__inner { padding: 0 20px; }
  .oc-banner__inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .hero__stats { grid-template-columns: repeat(2,1fr); }
  .stops-grid { grid-template-columns: 1fr; }
  .participants-grid { grid-template-columns: 1fr 1fr; }
}

/* ── TOUR NAV DROPDOWN IMPROVEMENTS ─────────────────────── */
.nav__sub a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #444;
  border-radius: 6px;
  transition: background .15s;
}
.nav__sub a:hover { background: var(--gray); color: var(--black); }
.nav__sub a:first-child {
  font-weight: 700;
  color: var(--black);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-radius: 0;
}

/* Responsive tour grid */
@media (max-width: 900px) {
  .stops-grid, [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2,1fr) !important;
  }
}
@media (max-width: 540px) {
  .stops-grid, [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}