/*
Theme Name: Reel Academy Parallax
Theme URI: https://example.com
Author: Custom Build
Description: Single-page parallax WordPress theme promoting five creative courses: Advanced Video Editing, Advanced Graphic Design, 3D Blender, Music Production, and Video Production. Built with a strict Rockwell / black / white / red / purple identity.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reel-academy
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --black:   #0a0a0a;
  --off-black: #141014;
  --white:   #f5f2f0;
  --red:     #e01329;
  --purple:  #5a1793;
  --purple-deep: #2c0a4a;

  --font-display: Rockwell, "Rockwell Nova", "Roboto Slab", "Sitka Small", Georgia, serif;
  --font-body: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;

  --gap: clamp(1.25rem, 3vw, 3rem);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .02em;
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* =========================================================
   TIMELINE SCRUBBER NAV  (signature element)
   A fixed strip styled like a video-editor timeline. A red
   playhead fills across it as the visitor scrolls, and each
   marker jumps to a course section — echoing the editing /
   production theme of the courses themselves.
   ========================================================= */
.scrubber{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  background: rgba(10,10,10,.92);
  border-bottom: 2px solid var(--purple);
  backdrop-filter: blur(4px);
}
.scrubber-track{
  position:relative;
  height: 46px;
  display:flex;
  align-items:center;
  max-width: 1180px;
  margin:0 auto;
  padding: 0 var(--gap);
  gap: 6px;
}
.scrubber-fill{
  position:absolute;
  left:0; top:0; bottom:0;
  width: 0%;
  background: linear-gradient(90deg, var(--purple-deep), var(--red));
  z-index:0;
  transition: width .1s linear;
}
.scrubber-mark{
  position:relative;
  z-index:1;
  flex: 1;
  text-align:center;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  opacity:.65;
  padding: 6px 2px;
  border-left: 1px solid rgba(245,242,240,.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scrubber-mark:first-child{ border-left: none; }
.scrubber-mark.active{ opacity:1; color: var(--white); font-weight: bold; }
.scrubber-mark:hover{ opacity:1; }

/* =========================================================
   PARALLAX SECTION BASE
   ========================================================= */
.parallax{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
}
.parallax-bg{
  position:absolute;
  inset: -10% 0;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  z-index:-2;
}
.parallax::after{
  content:"";
  position:absolute; inset:0;
  z-index:-1;
}
.parallax-content{
  position:relative;
  z-index:2;
  width:100%;
  padding: 120px 0 80px;
}

/* diagonal "cut" divider between sections - editing motif */
.cut-divider{
  position:absolute;
  left:0; right:0; bottom:-1px;
  height: 90px;
  z-index: 3;
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
  pointer-events:none;
}

/* =========================================================
   HERO
   ========================================================= */
.hero{
  background: radial-gradient(ellipse at 30% 20%, var(--purple-deep) 0%, var(--black) 60%);
}
.hero .parallax-bg{
  background:
    repeating-linear-gradient(115deg, rgba(224,19,41,.10) 0 2px, transparent 2px 40px),
    radial-gradient(ellipse at 70% 70%, rgba(90,23,147,.55), transparent 55%);
}
.hero-eyebrow{
  display:inline-block;
  font-size: .75rem;
  letter-spacing:.25em;
  text-transform:uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1{
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .98;
  max-width: 14ch;
}
.hero h1 .hl{ color: var(--red); }
.hero p.lede{
  max-width: 46ch;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: rgba(245,242,240,.85);
  margin-bottom: 2em;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing:.08em;
  font-size: .9rem;
  padding: 16px 30px;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor:pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.btn-primary:hover{ background: var(--white); color: var(--red); border-color: var(--white); }
.btn-ghost:hover{ background: var(--white); color: var(--black); }

.hero-actions{ display:flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll-cue{
  position:absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-size:.7rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color: rgba(245,242,240,.6);
  display:flex; flex-direction:column; align-items:center; gap:8px;
}
.hero-scroll-cue span{
  width:1px; height:34px;
  background: linear-gradient(var(--red), transparent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ transform: scaleY(0); transform-origin: top; }
  50%{ transform: scaleY(1); transform-origin: top; }
  50.01%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================================
   INTRO STRIP
   ========================================================= */
.intro{
  background: var(--white);
  color: var(--black);
  padding: 90px 0;
}
.intro-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.intro h2{ grid-column: 1 / -1; font-size: clamp(1.8rem,3.4vw,2.6rem); max-width: 20ch; }
.intro-stat{ border-top: 3px solid var(--red); padding-top: 14px; }
.intro-stat .num{ font-size: 2.6rem; color: var(--purple); display:block; }
.intro-stat .lbl{ text-transform:uppercase; letter-spacing:.08em; font-size:.78rem; }

/* =========================================================
   COURSES — full height alternating parallax panels
   ========================================================= */
.course-panel{ color: var(--white); }
.course-panel:nth-of-type(odd) .parallax-bg{
  background:
    linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.85)),
    radial-gradient(circle at 80% 20%, rgba(224,19,41,.35), transparent 55%);
  background-color: var(--off-black);
}
.course-panel:nth-of-type(even) .parallax-bg{
  background:
    linear-gradient(180deg, rgba(10,10,10,.5), rgba(10,10,10,.85)),
    radial-gradient(circle at 20% 80%, rgba(90,23,147,.55), transparent 55%);
  background-color: var(--purple-deep);
}
.course-panel .cut-divider{ background: var(--black); }
.course-panel:nth-of-type(even) .cut-divider{ background: var(--off-black); }

.course-index{
  font-size: .85rem;
  letter-spacing:.2em;
  color: var(--red);
  margin-bottom: 14px;
  display:block;
}
.course-panel h2{
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 16ch;
}
.course-panel .course-desc{
  max-width: 52ch;
  color: rgba(245,242,240,.85);
  margin-bottom: 1.6em;
}
.course-meta{
  display:flex;
  gap: 28px;
  flex-wrap:wrap;
  margin-bottom: 2em;
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.course-meta span{ border-left: 2px solid var(--red); padding-left: 10px; }

/* =========================================================
   ENROLL / CTA
   ========================================================= */
.cta{
  background: linear-gradient(120deg, var(--purple-deep), var(--black) 70%);
  text-align:center;
  padding: 130px 0;
}
.cta h2{ font-size: clamp(2rem,5vw,3.2rem); }
.cta p{ max-width: 50ch; margin: 0 auto 2em; color: rgba(245,242,240,.85); }

/* =========================================================
   FOOTER
   ========================================================= */
footer.site-footer{
  background: var(--black);
  border-top: 2px solid var(--purple);
  padding: 50px 0 30px;
  font-size: .85rem;
  color: rgba(245,242,240,.7);
}
.footer-grid{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.footer-logo{
  font-family: var(--font-display);
  text-transform:uppercase;
  letter-spacing:.1em;
  color: var(--white);
  font-size:1.1rem;
}
.footer-logo .hl{ color: var(--red); }
.footer-links{ display:flex; gap: 22px; flex-wrap:wrap; }
.footer-bottom{
  border-top: 1px solid rgba(245,242,240,.15);
  padding-top: 18px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 780px){
  .intro-grid{ grid-template-columns: 1fr; }
  .scrubber-mark{ font-size:.58rem; }
  .parallax-bg{ background-attachment: scroll; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .parallax-bg{ background-attachment: scroll; }
  .hero-scroll-cue span{ animation:none; }
  .scrubber-fill{ transition:none; }
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
