/*
Theme Name: Perec Modern
Theme URI: https://perec.fm/
Author: Perec FM
Description: Lightweight custom theme for Perec FM based on the modern landing design.
Version: 1.0.0
Text Domain: perec-modern
*/

/* WordPress theme layer. The landing design lives in assets/css/landing.css. */
.admin-bar .sticky-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .sticky-nav { top: 46px; } }

body { padding-bottom: 104px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-main { min-height: 60vh; }
.ajax-loading .site-main { opacity: .45; transition: opacity .2s ease; }

.nav-links ul,
.footer-menu ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.nav-links li,
.footer-menu li { list-style: none; }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links a.is-active {
  color: #fff;
  background: rgba(232,48,42,.25);
  box-shadow: inset 0 0 0 1px rgba(232,48,42,.28);
}
.header-mobile-toggle {
  display: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
}

.site-page {
  padding: 130px 20px 90px;
  background:
    radial-gradient(ellipse at top right, rgba(232,48,42,.18), transparent 42%),
    var(--bg);
}
.site-page-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.page-hero { margin-bottom: 34px; }
.page-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(32px, 6vw, 70px);
  line-height: 1;
  margin: 0 0 18px;
}
.page-subtitle {
  color: rgba(255,255,255,.68);
  max-width: 760px;
  font-size: 18px;
  line-height: 1.7;
}
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
}
.content-card :where(p, li) {
  color: rgba(255,255,255,.72);
  line-height: 1.8;
}
.content-card :where(h1,h2,h3,h4) {
  font-family: 'Unbounded', sans-serif;
  margin: 1.2em 0 .6em;
}
.content-card a { color: var(--light-green); }
.content-card ul,
.content-card ol { padding-left: 22px; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.home-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--border);
  border-radius: 22px;
  transition: transform .25s, border-color .25s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,48,42,.45);
}
.post-card-image {
  aspect-ratio: 16 / 10;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.projects-section .post-card-image {
  aspect-ratio: auto;
}
.projects-section .post-card-image img {
  height: auto;
  object-fit: contain;
}
.post-card-dj .post-card-image img {
  object-position: top center;
}
.post-card-body { padding: 18px; }
.post-card-kicker {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--light-green);
  margin-bottom: 8px;
}
.post-card h2,
.post-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.post-card p {
  color: rgba(255,255,255,.64);
  line-height: 1.6;
  margin: 0;
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.partner-card {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(232,48,42,.34);
  border-radius: 24px;
  background: rgba(255,255,255,.045);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.partner-card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 18px 55px rgba(232,48,42,.16);
}
.partner-card img {
  max-width: 270px;
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}
.partner-card span {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 800;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,.04);
}
.pagination .current {
  background: var(--red);
  border-color: var(--red);
}
.section-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.home-top-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .85fr);
  gap: 24px;
  align-items: stretch;
}
.home-feature-slider {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.home-feature-track {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
  will-change: transform;
}
.home-feature-slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  box-sizing: border-box;
}
.home-feature-slide img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.home-feature-slide:hover img {
  transform: scale(1.05);
}
.home-feature-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(10,10,10,.68);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}
.home-feature-arrow:hover {
  background: var(--red);
  transform: translateY(-50%) scale(1.06);
}
.home-feature-arrow.prev { left: 16px; }
.home-feature-arrow.next { right: 16px; }
.app-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(90,176,48,.28);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(90,176,48,.22), transparent 34%),
    rgba(255,255,255,.045);
  box-shadow: 0 24px 80px rgba(0,0,0,.26);
}
.compact-app-card {
  align-content: center;
  min-height: 400px;
  height: 100%;
}
.compact-app-card .section-title {
  margin-bottom: 0;
}
.app-card p:not(.section-label) {
  color: rgba(255,255,255,.7);
  font-size: 17px;
  line-height: 1.7;
  max-width: 640px;
}
.app-buttons {
  display: grid;
  gap: 12px;
}
.app-buttons a {
  display: block;
  min-width: 0;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: #111;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.app-buttons span,
.app-buttons strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
}
.app-buttons span {
  font-size: 10px;
  color: rgba(255,255,255,.62);
}
.app-buttons strong {
  margin-top: 3px;
  font-size: clamp(15px, 1.6vw, 18px);
}
.contact-highlight-card {
  border-color: rgba(90,176,48,.24);
}
.contact-highlight-card h4 {
  margin-top: 0;
}
.contact-highlight-card a {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  color: var(--light-green);
  text-decoration: none;
}

.global-player {
  position: fixed;
  z-index: 1000;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(10,10,10,.88);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 26px rgba(232,48,42,.2);
}
.global-player-btn {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--red), var(--green));
  color: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(232,48,42,.45);
}
.global-player-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.global-player-btn .pause-icon { display: none; }
.global-player.is-playing .global-player-btn .play-icon { display: none; }
.global-player.is-playing .global-player-btn .pause-icon { display: block; }
.global-player-meta {
  min-width: 0;
  flex: 1;
}
.global-player-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}
.global-player-track {
  font-size: 13px;
  color: rgba(255,255,255,.66);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-player-station {
  position: relative;
  flex: 0 0 auto;
}
.global-player-station-toggle {
  position: relative;
  width: 230px;
  max-width: 230px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 0 34px 0 14px;
  background:
    linear-gradient(135deg, rgba(232,48,42,.18), rgba(90,176,48,.14)),
    rgba(255,255,255,.08);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 800;
  outline: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.global-player-station-toggle::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(255,255,255,.76);
  border-bottom: 2px solid rgba(255,255,255,.76);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.global-player-station-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  min-width: 230px;
  display: none;
  padding: 8px;
  border-radius: 18px;
  background: rgba(10,10,10,.96);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 46px rgba(0,0,0,.36), 0 0 24px rgba(232,48,42,.16);
  backdrop-filter: blur(16px);
}
.global-player-station.is-open .global-player-station-menu {
  display: grid;
  gap: 6px;
}
.global-player-station-option {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.global-player-station-option:hover,
.global-player-station-option.is-active {
  background: linear-gradient(135deg, rgba(232,48,42,.85), rgba(90,176,48,.72));
  color: #fff;
}
.global-player-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
  opacity: .35;
}
.global-player.is-playing .global-player-bars { opacity: 1; }
.global-player-bars span {
  display: block;
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: var(--light-green);
  animation: globalSoundBar 1s ease-in-out infinite;
}
.global-player-bars span:nth-child(2) { animation-delay: .12s; }
.global-player-bars span:nth-child(3) { animation-delay: .24s; }
.global-player-bars span:nth-child(4) { animation-delay: .36s; }
.global-player-bars span:nth-child(5) { animation-delay: .48s; }
.global-player:not(.is-playing) .global-player-bars span { animation-play-state: paused; }
@keyframes globalSoundBar {
  0%, 100% { height: 8px; }
  50% { height: 26px; }
}
.player-volume {
  width: 95px;
  accent-color: var(--green);
}
.floating-socials {
  position: fixed;
  z-index: 999;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(10,10,10,.82);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 46px rgba(0,0,0,.34), 0 0 24px rgba(232,48,42,.16);
}
.floating-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.floating-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.floating-socials a:hover {
  background: linear-gradient(135deg, var(--red), var(--green));
  color: #fff;
  transform: translateX(-3px) scale(1.04);
  box-shadow: 0 0 22px rgba(232,48,42,.38);
}
.page-loader {
  position: fixed;
  z-index: 1200;
  top: 50%;
  left: 50%;
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(10,10,10,.86);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  transform: translate(-50%, -50%) scale(.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.page-loader.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.page-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--light-green);
  animation: pageLoaderDot .7s ease-in-out infinite alternate;
}
.page-loader span:nth-child(2) { animation-delay: .12s; background: var(--red-bright); }
.page-loader span:nth-child(3) { animation-delay: .24s; }
@keyframes pageLoaderDot {
  from { transform: translateY(0); opacity: .45; }
  to { transform: translateY(-5px); opacity: 1; }
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 380px) 1fr;
  gap: 20px;
  align-items: stretch;
}
.map-stations-card {
  padding: 22px;
}
.map-stations-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
}
.map-stations-card > p {
  color: rgba(255,255,255,.64);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.station-list {
  list-style: none;
  display: grid;
  gap: 5px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0;
  padding: 0 6px 0 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(232,48,42,.7) rgba(255,255,255,.08);
}
.station-list::-webkit-scrollbar {
  width: 6px;
}
.station-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}
.station-list::-webkit-scrollbar-thumb {
  background: rgba(232,48,42,.7);
  border-radius: 999px;
}
.station-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 0;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.station-item:hover,
.station-item.is-active {
  background: var(--red);
  box-shadow: 0 10px 24px rgba(232,48,42,.22);
  transform: translateX(3px);
}
.station-item strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  line-height: 1.25;
  min-width: 0;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 820px) {
	.station-item strong {
	  max-width: 100%;
	}
}
.station-item:hover strong,
.station-item.is-active strong {
  color: #fff;
}
.station-item span {
  display: block;
  color: var(--green);
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  flex: 0 0 auto;
}
.station-item:hover span,
.station-item.is-active span {
  color: #fff;
}
.perec-map {
  height: 100%;
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #e8e8e8;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
}
.perec-map-marker-wrap {
  background: none !important;
  border: 0 !important;
}
.perec-map-marker {
  display: block;
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 2px 12px rgba(232,48,42,.52);
  position: relative;
}
.perec-map-marker:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 22px;
}
.contact-map {
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
}
.footer-menu ul { display: block; }
.footer-menu a {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  line-height: 1.9;
}
.footer-phone {
  display: inline-block;
  margin: 10px 0 4px;
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}
.footer-socials {
  margin-top: 16px;
}
.footer-socials p {
  margin: 0;
}
.footer-socials h3 {
  display: none;
}
.footer-socials img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 10px;
  vertical-align: middle;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.16));
}

@media (max-width: 820px) {
  .header-mobile-toggle { display: inline-flex; }
  .sticky-nav { align-items: flex-start; }
  .nav-links {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 60px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10,10,10,.96);
  }
  .nav-links.is-open { display: block; }
  .nav-links ul { display: grid; }
  .map-layout,
  .home-three-grid,
  .home-team-grid,
  .home-top-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .station-list { max-height: 280px; }
  .perec-map { height: 360px; min-height: 360px; }
  .global-player {
    bottom: 10px;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .global-player-meta {
    flex: 1 1 auto;
    min-width: 0;
  }
  .global-player-station {
    flex: 0 0 auto;
    margin-left: 0;
    width: 38px;
  }
  .global-player-station-toggle {
    width: 38px;
    max-width: 38px;
    height: 38px;
    padding: 0;
    color: transparent;
    font-size: 0;
    background:
      linear-gradient(135deg, rgba(232,48,42,.28), rgba(90,176,48,.18)),
      rgba(255,255,255,.08);
  }
  .global-player-station-toggle::after {
    right: 15px;
  }
  .global-player-station-menu {
    right: 0;
    min-width: 220px;
  }
  .global-player-station-option {
    font-size: 11px;
  }
  .player-volume { display: none; }
}

@media (max-width: 768px) {
  .floating-socials { display: none; }
}
