/*
Theme Name: intim-cfest
Theme URI: https://contactfest.in.ua/
Author: Studio
Author URI: https://contactfest.in.ua/
Description: Vivid festival poster theme with neon gradient hero, angled asymmetric grid, rotated ticker of event dates, and vibrant category chips. Built for contactfest.in.ua.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: intim-cfest
*/

:root {
  --cfest-midnight: #0b0a1e;
  --cfest-magenta: #ff2ec4;
  --cfest-cyan: #00d4ff;
  --cfest-yellow: #ffe14e;
  --cfest-paper: #f6f4ff;
  --cfest-ink: #0b0a1e;
  --cfest-ink-soft: #26214a;
  --cfest-line: rgba(11, 10, 30, 0.12);
  --brand: var(--cfest-magenta);
  --ink: var(--cfest-ink);
  --paper: var(--cfest-paper);
  --accent: var(--cfest-cyan);
  --cfest-radius: 22px;
  --cfest-shadow: 0 18px 40px -20px rgba(11, 10, 30, 0.4);
  --cfest-font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --cfest-font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.cfest-body {
  margin: 0;
  background: var(--cfest-paper);
  color: var(--cfest-ink);
  font-family: var(--cfest-font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--cfest-ink); text-decoration: none; border-bottom: 2px solid var(--cfest-magenta); transition: color .15s ease, border-color .15s ease; }
a:hover { color: var(--cfest-magenta); border-color: var(--cfest-cyan); }

h1, h2, h3, h4, h5 {
  font-family: var(--cfest-font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  line-height: 1.05;
}

.cfest-wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* header */
.cfest-site-header {
  position: relative;
  background: var(--cfest-midnight);
  color: #fff;
  padding: 22px 0 18px;
  overflow: hidden;
}
.cfest-site-header::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 300px;
  background: radial-gradient(60% 80% at 20% 30%, rgba(255,46,196,.55), transparent 60%),
              radial-gradient(50% 70% at 80% 40%, rgba(0,212,255,.5), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.cfest-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cfest-brand { display: flex; align-items: center; gap: 14px; border: 0; }
.cfest-brand svg { width: 48px; height: 48px; display: block; }
.cfest-brand img { width: 48px; height: auto; }
.cfest-site-title { color: #fff; font-family: var(--cfest-font-display); font-size: 22px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }

.cfest-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cfest-nav a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff;
  font-family: var(--cfest-font-display);
  font-size: 14px;
  letter-spacing: .02em;
}
.cfest-nav a:hover { background: var(--cfest-magenta); border-color: var(--cfest-magenta); color: #fff; }
.cfest-nav .current-menu-item > a { background: var(--cfest-cyan); border-color: var(--cfest-cyan); color: var(--cfest-midnight); }

/* ticker */
.cfest-ticker {
  background: var(--cfest-yellow);
  color: var(--cfest-midnight);
  padding: 14px 0;
  overflow: hidden;
  transform: rotate(-1.2deg);
  margin: 26px -12px 0;
  border-top: 3px solid var(--cfest-midnight);
  border-bottom: 3px solid var(--cfest-midnight);
}
.cfest-ticker-track {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  font-family: var(--cfest-font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  text-transform: uppercase;
  animation: cfest-scroll 40s linear infinite;
}
.cfest-ticker-track span::before { content: "★"; margin-right: 18px; color: var(--cfest-magenta); }
@keyframes cfest-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* homepage hero */
.cfest-hero {
  position: relative;
  padding: 90px 0 120px;
  background:
    radial-gradient(60% 90% at 15% 25%, rgba(255,46,196,.35), transparent 60%),
    radial-gradient(65% 100% at 90% 15%, rgba(0,212,255,.3), transparent 65%),
    linear-gradient(180deg, var(--cfest-midnight) 0%, #17133b 100%);
  color: #fff;
  overflow: hidden;
}
.cfest-hero-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: end; }
.cfest-hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.cfest-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cfest-magenta), var(--cfest-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cfest-hero-lead-text {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}
.cfest-hero-side {
  transform: rotate(2deg);
  border: 3px solid var(--cfest-yellow);
  padding: 22px;
  border-radius: 4px;
  background: rgba(11,10,30,.4);
}
.cfest-hero-side p { margin: 0 0 8px; font-family: var(--cfest-font-display); font-size: 18px; }

/* chips */
.cfest-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.cfest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--cfest-midnight);
  font-family: var(--cfest-font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: 0;
}
.cfest-chip:nth-child(3n) { background: var(--cfest-yellow); }
.cfest-chip:nth-child(3n+1) { background: var(--cfest-cyan); }
.cfest-chip:nth-child(3n+2) { background: var(--cfest-magenta); color: #fff; }
.cfest-chip:hover { transform: translateY(-2px); }

/* section */
.cfest-section { padding: 90px 0; position: relative; }
.cfest-section + .cfest-section { border-top: 1px solid var(--cfest-line); }
.cfest-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 38px; gap: 20px; flex-wrap: wrap; }
.cfest-section-head h2, .cfest-section-head .cfest-cat-title {
  font-size: clamp(28px, 3.6vw, 48px);
  margin: 0;
}
.cfest-section-head a.cfest-more {
  font-family: var(--cfest-font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 8px 14px;
  border: 2px solid var(--cfest-ink);
  border-radius: 999px;
}

/* asymmetric grid */
.cfest-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px;
}
.cfest-card {
  background: #fff;
  border-radius: var(--cfest-radius);
  overflow: hidden;
  box-shadow: var(--cfest-shadow);
  display: flex;
  flex-direction: column;
  border: 3px solid var(--cfest-ink);
  transition: transform .15s ease;
}
.cfest-card:hover { transform: translateY(-3px); }
.cfest-card:nth-child(6n+1) { grid-column: span 3; transform: rotate(-.5deg); }
.cfest-card:nth-child(6n+2) { grid-column: span 3; transform: rotate(.6deg); }
.cfest-card:nth-child(6n+3) { grid-column: span 2; }
.cfest-card:nth-child(6n+4) { grid-column: span 2; }
.cfest-card:nth-child(6n+5) { grid-column: span 2; }
.cfest-card:nth-child(6n+6) { grid-column: span 3; }
.cfest-card-media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--cfest-magenta), var(--cfest-cyan)); overflow: hidden; }
.cfest-card-media img { width: 100%; height: 100%; object-fit: cover; }
.cfest-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cfest-card h2, .cfest-card h3 { font-size: 22px; margin: 0; line-height: 1.15; }
.cfest-card h2 a, .cfest-card h3 a { border-bottom: 0; }
.cfest-card h2 a:hover, .cfest-card h3 a:hover { color: var(--cfest-magenta); }
.cfest-card-meta { font-family: var(--cfest-font-display); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--cfest-ink-soft); }

/* single */
.cfest-single { padding: 70px 0 100px; }
.cfest-single-header { max-width: 880px; margin: 0 auto 40px; text-align: left; }
.cfest-crumbs { font-family: var(--cfest-font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--cfest-ink-soft); margin-bottom: 18px; }
.cfest-crumbs a { border-bottom: 0; }
.cfest-entry-title { font-size: clamp(36px, 5.5vw, 68px); margin: 0 0 18px; }
.cfest-byline { font-family: var(--cfest-font-display); font-size: 14px; color: var(--cfest-ink-soft); display: flex; gap: 18px; flex-wrap: wrap; }
.cfest-featured { margin: 0 auto 48px; max-width: 1100px; border-radius: 28px; overflow: hidden; border: 4px solid var(--cfest-ink); box-shadow: var(--cfest-shadow); }
.cfest-entry-content { max-width: 760px; margin: 0 auto; font-size: 18px; }
.cfest-entry-content p { margin: 0 0 1.2em; }
.cfest-entry-content h2, .cfest-entry-content h3 { margin-top: 1.6em; }
.cfest-entry-content h2 { font-size: 32px; }
.cfest-entry-content h2, .cfest-entry-content h3, .cfest-entry-title { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 520px) { .cfest-entry-content h2 { font-size: 24px; } .cfest-entry-content h3 { font-size: 20px; } .cfest-entry-title { font-size: 32px; } }
.cfest-entry-content blockquote {
  border-left: 5px solid var(--cfest-magenta);
  padding: 6px 0 6px 22px;
  margin: 32px 0;
  font-family: var(--cfest-font-display);
  font-size: 24px;
  line-height: 1.35;
}

/* related */
.cfest-related { max-width: 1100px; margin: 70px auto 0; }
.widget-title, .cfest-related .widget-title {
  font-family: var(--cfest-font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--cfest-ink-soft);
  margin: 0 0 22px;
  display: inline-block;
  padding: 6px 14px;
  background: var(--cfest-yellow);
  border-radius: 999px;
  border: 2px solid var(--cfest-ink);
}
.cfest-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* archive */
.cfest-archive-head {
  background: linear-gradient(135deg, var(--cfest-midnight), #1a1547);
  color: #fff;
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.cfest-archive-head::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 180px;
  background: radial-gradient(50% 100% at 50% 0, rgba(255,225,78,.4), transparent 70%);
  pointer-events: none;
}
.cfest-archive-head h1 { color: #fff; font-size: clamp(40px, 6vw, 80px); }
.cfest-archive-head .cfest-cat-desc { max-width: 640px; font-size: 18px; color: rgba(255,255,255,.85); }
.cfest-archive-list { padding: 70px 0; }

/* page */
.cfest-page { padding: 70px 0 100px; }
.cfest-page-inner { max-width: 780px; margin: 0 auto; }
.cfest-page-inner h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 30px; }

/* footer */
.cfest-site-footer { background: var(--cfest-midnight); color: #fff; padding: 70px 0 32px; }
.cfest-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; margin-bottom: 40px; align-items: start; }
.cfest-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cfest-footer-brand .widget-title { font-size: 20px; letter-spacing: .02em; margin: 0 0 4px; }
.cfest-footer-brand .cfest-footer-blurb { margin: 0; }
.cfest-footer-brand p { color: rgba(255,255,255,.72); max-width: 340px; font-size: 15px; line-height: 1.6; }
.cfest-footer-col ul { list-style: none; padding: 0; margin: 0; }
.cfest-footer-col li { margin-bottom: 8px; }
.cfest-footer-col a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
.cfest-footer-col a:hover { border-color: var(--cfest-cyan); color: var(--cfest-cyan); }
.cfest-footer-copy { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.6); font-family: var(--cfest-font-display); letter-spacing: .06em; text-transform: uppercase; }

.cfest-site-footer .widget-title { background: transparent; color: var(--cfest-yellow); border-color: var(--cfest-yellow); }

/* responsive */
@media (max-width: 960px) {
  .cfest-hero-grid { grid-template-columns: 1fr; }
  .cfest-card:nth-child(n) { grid-column: span 6; transform: none; }
  .cfest-related-grid { grid-template-columns: 1fr; }
  .cfest-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cfest-wrap { padding: 0 18px; }
  .cfest-hero { padding: 60px 0 80px; }
  .cfest-section { padding: 60px 0; }
}
.cfest-footer-logo{display:inline-flex;margin-bottom:6px}.cfest-footer-logo svg{width:52px;height:52px}

/* --- clean footer v2 --- */
.cfest-foot2 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; padding: 8px 0 36px; align-items: start; }
.cfest-foot2-partners a { overflow-wrap: anywhere; }
.cfest-foot2-brand { display: flex; flex-direction: column; gap: 14px; }
.cfest-foot2-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.cfest-foot2-logo svg { width: 44px; height: 44px; flex: none; }
.cfest-foot2-name { font-family: var(--cfest-font-display); font-size: 22px; font-weight: 700; letter-spacing: .01em; color: #fff; }
.cfest-foot2-blurb { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.6; max-width: 340px; }
.cfest-foot2-h { font-family: var(--cfest-font-display); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--cfest-yellow); margin: 0 0 16px; }
.cfest-foot2-links ul { list-style: none; margin: 0; padding: 0; }
.cfest-foot2-links li { margin-bottom: 10px; }
.cfest-foot2-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 15px; border: 0; transition: color .18s; }
.cfest-foot2-links a:hover { color: var(--cfest-cyan); }
.cfest-foot2-copy { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); font-family: var(--cfest-font-display); }
@media (max-width: 960px) { .cfest-foot2 { grid-template-columns: 1fr 1fr; gap: 40px; } .cfest-foot2-brand { grid-column: 1 / -1; } }
@media (max-width: 720px) { .cfest-foot2 { grid-template-columns: 1fr; gap: 32px; } }
