/* ============================================================
   CinemaAPKk — Premium Design System v1.0.0
   A cohesive visual layer over Kadence + Elementor.
   Brand: red/black/light. Restrained, fast, accessible.
   ============================================================ */

:root {
  --ck-red: #d9202e;
  --ck-red-dark: #a8121f;
  --ck-red-soft: #fdeef0;
  --ck-ink: #1b1f26;
  --ck-muted: #5c6572;
  --ck-bg: #ffffff;
  --ck-bg-soft: #f5f7fa;
  --ck-line: #e6eaf1;
  --ck-dark: #101318;
  --ck-dark-2: #171c23;
  --ck-radius: 14px;
  --ck-radius-s: 9px;
  --ck-shadow: 0 10px 30px rgba(16, 19, 24, 0.08);
  --ck-shadow-s: 0 4px 14px rgba(16, 19, 24, 0.07);
  --ck-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ck-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  font-family: var(--ck-font);
  color: var(--ck-ink);
  background: var(--ck-bg);
  -webkit-font-smoothing: antialiased;
}

/* Readable content column for long guides */
.single .entry-content > .elementor,
.page .entry-content > .elementor {
  --ck-measure: 100%;
}

/* ---------- Headings: keep brand red, add refinement ---------- */
h1, h2, h3, h4, h5, h6,
.elementor-widget-heading h1, .elementor-widget-heading h2,
.elementor-widget-heading h3 {
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
}

/* Section headings get a subtle red accent bar */
.entry-content h2:not(.faq-question):not([style*="text-align:center"]) {
  position: relative;
  padding-bottom: 0.55rem;
  margin-top: 2.6rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}
.entry-content h2:not(.faq-question):not([style*="text-align:center"])::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ck-red), var(--ck-red-dark));
}

/* Centered headings keep their look, just tightened */
.entry-content h2[style*="text-align:center"],
.entry-content h3[style*="text-align:center"] {
  text-wrap: balance;
}

/* Body copy rhythm */
.entry-content p, .entry-content li {
  line-height: 1.8;
  color: #2a2f38;
}
.entry-content > p, .elementor-widget-text-editor p {
  margin-bottom: 1.15rem;
}

/* ---------- Links ---------- */
.entry-content a:not(.elementor-button):not(.wp-block-button__link) {
  color: #1a56db;
  text-decoration: underline;
  text-decoration-color: rgba(26, 86, 219, 0.35);
  text-underline-offset: 3px;
  transition: color 0.18s var(--ck-ease), text-decoration-color 0.18s var(--ck-ease);
}
.entry-content a:not(.elementor-button):not(.wp-block-button__link):hover {
  color: var(--ck-red-dark);
  text-decoration-color: var(--ck-red-dark);
}

/* ---------- Buttons: premium black w/ red edge ---------- */
.elementor-button, .wp-block-button__link, button.ck-btn, a.ck-btn {
  border-radius: 12px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 1rem 2.1rem;
  transition: transform 0.22s var(--ck-ease), box-shadow 0.22s var(--ck-ease), background 0.22s var(--ck-ease);
  box-shadow: 0 8px 22px rgba(16, 19, 24, 0.22);
}
.elementor-button:hover, .wp-block-button__link:hover, button.ck-btn:hover, a.ck-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(217, 32, 46, 0.28);
}
.elementor-button:active, .wp-block-button__link:active {
  transform: translateY(0);
}
.elementor-button:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(217, 32, 46, 0.55);
  outline-offset: 3px;
}

/* ---------- Header: sticky polish ---------- */
#masthead .site-header-wrap {
  transition: box-shadow 0.25s var(--ck-ease);
}
body.ck-scrolled #masthead .site-header-wrap {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.main-navigation .menu > li > a {
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 8px;
  transition: background 0.18s var(--ck-ease), color 0.18s var(--ck-ease);
}
.main-navigation .menu > li > a:hover {
  background: rgba(255, 255, 255, 0.09);
}

/* ---------- Tables: premium ---------- */
.entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ck-line);
  border-radius: var(--ck-radius-s);
  overflow: hidden;
  margin: 1.6rem 0;
  font-size: 0.95rem;
  box-shadow: var(--ck-shadow-s);
}
.entry-content thead th {
  background: var(--ck-dark);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border: none;
}
.entry-content tbody td {
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--ck-line);
  vertical-align: top;
}
.entry-content tbody tr:nth-child(even) td {
  background: var(--ck-bg-soft);
}
.entry-content tbody tr:hover td {
  background: var(--ck-red-soft);
}

/* ---------- FAQ accordion polish ---------- */
.faq-container { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--ck-line);
  border-radius: var(--ck-radius-s);
  margin-bottom: 0.7rem;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s var(--ck-ease), border-color 0.2s var(--ck-ease);
}
.faq-item:hover { border-color: #c9d2e0; box-shadow: var(--ck-shadow-s); }
.faq-question {
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ck-ink);
}
.faq-answer { padding: 0 1.25rem 1.2rem; line-height: 1.75; color: var(--ck-muted); }

/* ---------- Lists: breathing room ---------- */
.entry-content ul:not(.ck-plain), .entry-content ol:not(.ck-plain) {
  margin: 1.2rem 0 1.6rem;
  padding-left: 1.4rem;
}
.entry-content li { margin-bottom: 0.55rem; }
.entry-content li::marker { color: var(--ck-red); font-weight: 700; }

/* ---------- Images ---------- */
.entry-content img {
  border-radius: var(--ck-radius-s);
}
.wp-block-image img, .elementor-widget-image img {
  box-shadow: var(--ck-shadow-s);
}

/* ---------- Callout / note boxes ---------- */
.cinemaapkk-note {
  box-shadow: var(--ck-shadow-s);
}

/* ---------- Scroll progress bar ---------- */
#ck-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--ck-red), var(--ck-red-dark));
  z-index: 99999;
  pointer-events: none;
}

/* ---------- Back to top ---------- */
#ck-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--ck-dark);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s var(--ck-ease), transform 0.25s var(--ck-ease), background 0.2s;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  z-index: 99990;
}
#ck-top.ck-show { opacity: 1; transform: none; pointer-events: auto; }
#ck-top:hover { background: var(--ck-red); }

/* ---------- Reveal-on-scroll ---------- */
.ck-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ck-ease), transform 0.6s var(--ck-ease);
  transition-delay: var(--ck-d, 0s);
}
.ck-reveal.ck-in { opacity: 1; transform: none; }

/* ---------- Footer: premium dark ---------- */
.site-top-footer-wrap {
  background: var(--ck-dark) !important;
  color: #c7cdd6;
}
.ck-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.ck-footer-brand img {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.ck-footer-brand p { color: #9aa3af; line-height: 1.7; font-size: 0.95rem; max-width: 300px; }
.ck-footer-col h3 {
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1.1rem;
}
.ck-footer-col h3:not(:first-child) { margin-top: 1.6rem; }
.ck-footer-col ul { list-style: none; margin: 0; padding: 0; }
.ck-footer-col li { margin-bottom: 0.6rem; }
.ck-footer-col a {
  color: #c7cdd6 !important;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: color 0.18s var(--ck-ease), padding-left 0.18s var(--ck-ease);
}
.ck-footer-col a:hover { color: #fff !important; padding-left: 6px; }
.site-bottom-footer-wrap {
  background: #0b0e12 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ck-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  max-width: 1200px;
  margin: 0 auto;
  color: #8b94a1;
  font-size: 0.88rem;
}
.ck-disclosure { color: #6b7482; }


/* ============================================================
   CRAZY FULL-SCREEN FOOTER v1.1.0
   ============================================================ */

/* Full-bleed: break out of the constrained site container */
.site-top-footer-wrap {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  position: relative;
  overflow: hidden;
}

/* Ambient red glow */
.site-top-footer-wrap::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 440px;
  background: radial-gradient(ellipse at center, rgba(217, 32, 46, 0.28), transparent 70%);
  pointer-events: none;
}
.site-top-footer-wrap::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: 12%;
  width: 520px;
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(217, 32, 46, 0.14), transparent 70%);
  pointer-events: none;
}

/* Giant background wordmark */
.ck-footer-giant {
  position: absolute;
  bottom: -3.5vw;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17.5vw;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.ck-footer-grid {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  padding: 4.5rem 2rem 3rem;
}
.ck-footer-col h3 {
  font-size: 1rem;
  margin-bottom: 1.3rem;
  position: relative;
  display: inline-block;
}
.ck-footer-col h3::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--ck-red);
  margin-top: 0.55rem;
}
.ck-footer-brand img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}
.ck-footer-brand p { font-size: 1.02rem; max-width: 340px; }

/* ---------- CTA band (injected above footer) ---------- */
.ck-cta-band {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  padding: 5rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 340px at 50% -60px, rgba(217, 32, 46, 0.35), transparent 70%),
    linear-gradient(160deg, #0d1015 0%, #161b23 55%, #221016 100%);
  overflow: hidden;
}
.ck-cta-band::after {
  content: "CINEMA";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22vw;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.ck-cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.ck-cta-band h2 {
  color: #fff !important;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.ck-cta-band h2 .ck-hl {
  background: linear-gradient(90deg, #ff4d5e, #d9202e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ck-cta-band p {
  color: #a7b0bc;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0 auto 2.2rem;
  max-width: 560px;
}
.ck-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #e53241, #b3121f);
  color: #fff !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 1.15rem 3rem;
  border-radius: 16px;
  text-decoration: none !important;
  box-shadow: 0 16px 44px rgba(217, 32, 46, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.22s var(--ck-ease), box-shadow 0.22s var(--ck-ease);
}
.ck-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 60px rgba(217, 32, 46, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #fff !important;
}
.ck-cta-note {
  display: block;
  margin-top: 1.1rem;
  color: #6f7885;
  font-size: 0.88rem;
}

/* Bottom bar full-bleed */
.site-bottom-footer-wrap {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}
.ck-bottom-inner { max-width: 1400px; padding: 1.2rem 2rem; }

@media (max-width: 900px) {
  .ck-footer-giant { font-size: 24vw; bottom: -4vw; }
  .ck-cta-band { padding: 3.5rem 1.25rem; }
  .ck-cta-band::after { font-size: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-cta-btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .ck-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2.5rem 0 1.5rem; }
  .ck-footer-brand { grid-column: 1 / -1; }
  .ck-footer-brand p { max-width: none; }
}
@media (max-width: 560px) {
  .ck-footer-grid { grid-template-columns: 1fr; }
  .elementor-button, .wp-block-button__link { width: 100%; text-align: center; }
  #ck-top { right: 16px; bottom: 16px; }
  .entry-content table { font-size: 0.85rem; }
  .entry-content thead th, .entry-content tbody td { padding: 0.6rem 0.7rem; }
}

/* ---------- Reduced motion: everything static ---------- */
@media (prefers-reduced-motion: reduce) {
  .ck-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  #ck-progress { display: none; }
}
