/*
Theme Name: Thumbstop Visuals
Theme URI: https://thumbstopvisuals.com
Author: Thumbstop Visuals
Author URI: https://thumbstopvisuals.com
Description: Custom WordPress theme for Thumbstop Visuals — video ad production site with editable Testimonials, FAQ, and embeddable Portfolio videos.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: thumbstop
*/

/* ==========================================================================
   THUMBSTOP VISUALS — Design tokens
   ========================================================================== */
:root{
  --bg:        #FAF9F5;
  --paper:     #FFFFFF;
  --ink:       #17170F;
  --muted:     #6E6C63;
  --line:      #E6E3D8;
  --accent:    #FF3B2E;
  --accent-tint:#FFEDE9;

  --display:  "Space Grotesk", "Inter", sans-serif;
  --body:     "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:     "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  --maxw: 1160px;
  --radius: 14px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-family:var(--display); font-weight:700; letter-spacing:-0.01em; }
p{ margin:0; }
button,input,textarea,select{ font-family:inherit; }
button{ cursor:pointer; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }

.eyebrow{
  font-family:var(--mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--accent); display:flex; align-items:center; gap:8px;
}
.eyebrow::before{
  content:""; width:7px; height:7px; border-radius:50%;
  background:var(--accent); box-shadow:0 0 0 3px var(--accent-tint);
}
:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:4px; }

/* NAV */
.site-nav{
  position:sticky; top:0; z-index:50;
  background:var(--ink);
  border-bottom:1px solid #2A2A22;
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; height:80px; gap:20px; }
.logo{ font-family:var(--display); font-weight:700; font-size:19px; display:flex; align-items:center; gap:9px; letter-spacing:-.01em; }

/* LOGO — real mark image, transparent background, white version for the dark bar */
.logo-mark{ display:inline-flex; align-items:center; line-height:0; }
.logo-mark img{ height:36px; width:auto; display:block; }
.nav-links{ display:flex; align-items:center; gap:32px; font-size:14px; font-weight:500; }
.nav-links a{ position:relative; color:#B8B6AC; transition:color .15s ease; }
.nav-links a:hover{ color:#fff; }
.nav-right{ display:flex; align-items:center; gap:10px; }
.nav-cta{
  background:#fff; color:var(--ink); padding:8px 15px; border-radius:100px;
  font-size:12.5px; font-weight:600; display:flex; align-items:center; gap:7px;
  transition:transform .15s ease, background .15s ease, color .15s ease;
}
.nav-cta:hover{ background:var(--accent); color:#fff; transform:translateY(-1px); }
.nav-cta .rec{ width:6px;height:6px;border-radius:50%;background:var(--accent); }
.nav-cta:hover .rec{ background:#fff; }
.nav-whatsapp{
  width:38px; height:38px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:#25D366; color:#fff;
  transition:transform .15s ease, filter .15s ease;
}
.nav-whatsapp:hover{ transform:translateY(-1px); filter:brightness(1.08); }
.nav-whatsapp svg{ width:18px; height:18px; }
.nav-toggle{
  display:none; background:none; border:1px solid #3A3A30; border-radius:8px;
  width:40px; height:40px; align-items:center; justify-content:center; color:#fff;
}
.nav-toggle svg{ width:18px; height:18px; }
.mobile-menu{ display:none; }

/* FILMSTRIP DIVIDER */
.filmstrip{
  height:16px; width:100%;
  background-image: radial-gradient(circle 3.5px, var(--bg) 3.5px, transparent 3.6px);
  background-size:22px 16px; background-position:center;
  background-color:var(--line); opacity:.9;
}


/* HERO */
.hero{ padding:88px 0 64px; position:relative; overflow:hidden; }
.timecode{ font-family:var(--mono); font-size:13px; color:var(--muted); display:flex; align-items:center; gap:8px; }
.timecode .rec-badge{ display:flex; align-items:center; gap:6px; color:var(--accent); font-weight:600; }
.timecode .rec-badge .dot{ width:8px;height:8px;border-radius:50%;background:var(--accent); animation:pulse 1.4s infinite ease-in-out; }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.25;} }
.hero h1{ font-size:clamp(48px, 8vw, 104px); line-height:.98; margin:6px 0 22px; }
.hero h1 .line2{ color:var(--accent); }
.hero-lead{ font-family:var(--display); font-weight:700; font-size:clamp(20px,2.4vw,26px); max-width:600px; margin-bottom:16px; }
.hero-sub{ max-width:540px; font-size:17px; color:var(--muted); margin-bottom:36px; }
.hero-actions{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom:56px; }
.btn{
  font-weight:600; font-size:14.5px; padding:15px 26px; border-radius:100px;
  border:1px solid transparent; display:inline-flex; align-items:center; gap:9px;
  transition:transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary{ background:var(--ink); color:#fff; }
.btn-primary:hover{ background:var(--accent); transform:translateY(-2px); }
.btn-ghost{ border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--ink); transform:translateY(-2px); }
.btn-secondary{
  background:var(--paper); color:var(--ink);
  border:2px solid var(--ink); padding:14px 25px;
  box-shadow:0 4px 0 0 var(--ink);
}
.btn-secondary:hover{ background:var(--ink); color:#fff; transform:translateY(2px); box-shadow:0 2px 0 0 var(--ink); }
.btn svg{ width:15px; height:15px; }
.chip{
  font-family:var(--mono); font-size:12.5px; border:1px solid var(--line); background:var(--paper);
  padding:9px 14px; border-radius:100px; color:var(--muted); display:flex; align-items:center; gap:7px;
}
.chip b{ color:var(--ink); font-weight:600; }
.chip .rect{ display:block; border:1.4px solid var(--muted); border-radius:2px; }
.chip.r916 .rect{ width:8px; height:14px; }
.chip.r11 .rect{ width:11px; height:11px; }
.chip.r169 .rect{ width:15px; height:8.4px; }

/* SECTIONS */
.section{ padding:96px 0; }
.section-head{ max-width:640px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(30px, 4vw, 44px); margin-top:12px; line-height:1.08; }
.section-head p{ color:var(--muted); font-size:17px; margin-top:16px; max-width:520px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* PROCESS — vertical timeline: a left rail with a line that fills downward
   as you scroll, connecting to a stacked list of steps */
.process-wrap{ position:relative; display:flex; gap:28px; align-items:stretch; margin-top:8px; }
.process-rail{ position:relative; width:20px; flex:none; overflow:hidden; }
.process-track-line{
  position:absolute; left:50%; top:6px; bottom:6px; width:2px; max-width:2px;
  background:var(--line); transform:translateX(-50%); pointer-events:none;
}
.process-track-fill{
  position:absolute; left:50%; top:6px; width:2px; max-width:2px; height:0%; max-height:100%;
  background:var(--accent); transform:translateX(-50%); transition:height .08s linear; pointer-events:none;
}
.process-dot{
  position:absolute; left:50%; top:0; width:12px; height:12px; border-radius:50%;
  background:var(--paper); border:2px solid var(--line); pointer-events:none;
  transform:translate(-50%,-50%); transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.process-dot.active{ background:var(--accent); border-color:var(--accent); transform:translate(-50%,-50%) scale(1.15); }

.process{ flex:1 1 auto; display:flex; flex-direction:column; }
.process-step{ padding:0 0 34px; border-bottom:1px solid var(--line); margin-bottom:34px; }
.process-step:last-child{ border-bottom:none; margin-bottom:0; padding-bottom:0; }
.process-step .pt-code{ font-family:var(--mono); font-size:13px; color:var(--accent); margin-bottom:14px; display:block; }
.process-step h4{ font-size:19px; margin-bottom:10px; }
.process-step p{ color:var(--muted); font-size:14.5px; margin-top:8px; }
.process-step p + p{ margin-top:10px; }
.process-step .kicker{ font-weight:600; color:var(--ink); font-size:14.5px; }

/* SERVICES */
.service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.service-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 28px; transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform:translateY(-4px); box-shadow:0 24px 44px -26px rgba(23,23,15,.18); }
.service-card h3{ font-size:20px; margin-bottom:18px; }
.service-card ul{ display:flex; flex-direction:column; gap:11px; }
.service-card li{ font-size:14px; color:var(--muted); display:flex; align-items:baseline; gap:9px; }
.service-card li::before{ content:""; width:5px; height:5px; border-radius:50%; background:var(--accent); flex:none; margin-top:2px; }

/* WHY US */
.why-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:18px; margin-bottom:44px; }
.why-item{
  background:var(--paper); border:1px solid var(--line); border-radius:12px;
  padding:22px 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px;
}
.why-item svg{ width:22px; height:22px; color:var(--accent); }
.why-item span{ font-size:13.5px; font-weight:600; line-height:1.3; }
.why-close{
  border-top:1px solid var(--line); padding-top:36px; text-align:center;
}
.why-close p{ font-family:var(--display); font-weight:700; font-size:clamp(20px,2.6vw,30px); line-height:1.35; }
.why-close p.dim{ color:var(--muted); font-weight:500; font-size:clamp(16px,1.8vw,19px); margin-top:6px; }

/* FILTER + PORTFOLIO */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; }
.filter-chip{
  font-family:var(--mono); font-size:12.5px; padding:9px 16px; border-radius:100px;
  border:1px solid var(--line); color:var(--muted); background:var(--paper);
  transition:all .15s ease;
}
.filter-chip:hover{ border-color:var(--ink); color:var(--ink); }
.filter-chip.active{ background:var(--ink); color:#fff; border-color:var(--ink); }

.reel-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.reel-card{ border-radius:var(--radius); overflow:hidden; background:var(--paper); border:1px solid var(--line); transition:transform .2s ease, box-shadow .2s ease; display:block; }
.reel-card:hover{ transform:translateY(-4px); box-shadow:0 24px 44px -26px rgba(23,23,15,.2); }
.reel-thumb{ aspect-ratio:4/5; position:relative; display:flex; align-items:flex-end; padding:16px; }
.reel-thumb::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); }
.reel-play{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,.92);
  display:flex; align-items:center; justify-content:center; transition:transform .2s ease;
}
.reel-card:hover .reel-play{ transform:translate(-50%,-50%) scale(1.08); }
.reel-play svg{ width:16px; height:16px; }
.reel-meta-top{ position:absolute; top:14px; left:14px; right:14px; display:flex; justify-content:space-between; z-index:2; }
.reel-badge{ font-family:var(--mono); font-size:11px; background:rgba(255,255,255,.92); color:var(--ink); padding:4px 9px; border-radius:100px; }
.reel-badge.cat{ background:rgba(23,23,15,.75); color:#fff; }
.reel-caption{ position:relative; z-index:2; color:#fff; }
.reel-caption .title{ font-family:var(--display); font-weight:700; font-size:16px; }
.reel-caption .cat-label{ font-family:var(--mono); font-size:11.5px; opacity:.85; margin-top:3px; }
.reel-info{ padding:16px 18px 20px; }
.reel-info .tc{ font-family:var(--mono); font-size:12px; color:var(--muted); }

/* TESTIMONIALS */
.testimonials{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.testimonial{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:32px; display:flex; flex-direction:column; gap:20px; }
.testimonial .quote{ font-size:16px; line-height:1.6; }
.testimonial .who{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.avatar{ width:38px; height:38px; border-radius:50%; flex:none; }
.who-name{ font-weight:600; font-size:14px; }
.who-role{ font-family:var(--mono); font-size:11.5px; color:var(--muted); }
.stars{ display:flex; gap:3px; }
.stars svg{ width:14px; height:14px; }

/* FAQ */
.faq{ max-width:760px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; background:none; border:none; text-align:left; padding:24px 0;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  font-family:var(--display); font-weight:700; font-size:17px; color:var(--ink);
}
.faq-q .plus{ flex:none; width:22px; height:22px; position:relative; }
.faq-q .plus::before, .faq-q .plus::after{
  content:""; position:absolute; background:var(--ink); border-radius:1px; top:50%; left:50%;
  transform:translate(-50%,-50%); transition:transform .2s ease;
}
.faq-q .plus::before{ width:14px; height:2px; }
.faq-q .plus::after{ width:2px; height:14px; }
.faq-item.open .plus::after{ transform:translate(-50%,-50%) rotate(90deg); opacity:0; }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a-inner{ padding-bottom:24px; color:var(--muted); font-size:15px; max-width:600px; }
.faq-a-inner b{ color:var(--ink); }

/* CONTACT */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:start; }
.contact-info .track-mini{
  display:flex; gap:12px; padding:16px 0; border-top:1px solid var(--line);
}
.contact-info .track-mini:last-child{ border-bottom:1px solid var(--line); }
.track-mini .tm-label{ font-family:var(--mono); font-size:12px; color:var(--accent); flex:none; width:80px; }
.track-mini .tm-text{ font-size:14.5px; color:var(--muted); }
.contact-methods{ display:flex; flex-direction:column; gap:14px; }
.contact-method{
  display:flex; align-items:center; gap:16px; padding:20px 22px;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-method:hover{ transform:translateY(-3px); box-shadow:0 20px 36px -24px rgba(23,23,15,.2); border-color:var(--ink); }
.cm-icon{
  width:44px; height:44px; border-radius:50%; flex:none;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-tint); color:var(--accent);
}
.cm-icon svg{ width:20px; height:20px; }
.contact-method-whatsapp .cm-icon{ background:#E7F8EC; color:#25D366; }
.contact-method-whatsapp:hover{ border-color:#25D366; }
.cm-text{ display:flex; flex-direction:column; gap:3px; }
.cm-label{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.cm-value{ font-family:var(--display); font-weight:700; font-size:17px; color:var(--ink); }

/* CTA BAND */
.cta-band{ background:var(--ink); color:#fff; padding:96px 0; text-align:center; position:relative; overflow:hidden; }
.cta-band .eyebrow{ justify-content:center; color:var(--accent); }
.cta-band h2{ font-size:clamp(32px, 5vw, 56px); margin:16px 0 18px; line-height:1.06; }
.cta-band p{ color:#B8B6AC; font-size:17px; max-width:480px; margin:0 auto 34px; }
.cta-band .btn-primary{ background:var(--accent); }
.cta-band .btn-primary:hover{ background:#fff; color:var(--ink); }
.cta-actions{ display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

/* FOOTER */
footer{ padding:56px 0 40px; }
.foot-top{ display:flex; justify-content:space-between; align-items:flex-start; padding-bottom:36px; border-bottom:1px solid var(--line); flex-wrap:wrap; gap:24px; }
.foot-brand .logo{ margin-bottom:10px; }
.foot-brand p{ color:var(--muted); font-size:14px; max-width:280px; }
.foot-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.foot-col h5{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.foot-col a, .foot-col span{ display:block; font-size:14.5px; margin-bottom:10px; color:var(--ink); }
.foot-col a:hover{ color:var(--accent); }
.foot-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:13px; color:var(--muted); flex-wrap:wrap; gap:10px; }

/* RESPONSIVE */
@media (max-width: 980px){
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .why-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-cta{ display:none; }
  .mobile-menu.open{ display:flex; }
  .mobile-menu{
    flex-direction:column; position:absolute; top:80px; left:0; right:0; background:var(--paper);
    border-bottom:1px solid var(--line); padding:12px 32px 24px; gap:4px; z-index:49;
  }
  .mobile-menu a{ padding:12px 0; font-size:15px; font-weight:500; border-bottom:1px solid var(--line); color:var(--ink); }
  .mobile-menu a.mobile-menu-cta{
    border-bottom:none; margin-top:14px; padding:14px 18px; background:var(--ink); color:#fff;
    border-radius:100px; text-align:center; font-weight:600; display:flex; align-items:center; justify-content:center; gap:8px;
  }
  .mobile-menu a.mobile-menu-cta .rec{ width:7px; height:7px; border-radius:50%; background:var(--accent); }
  .mobile-menu a:nth-last-child(2){ border-bottom:none; }
  .process-rail{ width:16px; }
  .reel-grid{ grid-template-columns:repeat(2,1fr); }
  .testimonials{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; gap:40px; }
  .hero{ padding:56px 0 48px; }
}
@media (max-width: 560px){
  .wrap{ padding:0 20px; }
  .reel-grid{ grid-template-columns:1fr; }
  .foot-top{ flex-direction:column; }
  .service-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
  html{ scroll-behavior:auto; }
}

/* ==========================================================================
   WORDPRESS-SPECIFIC ADDITIONS
   ========================================================================== */

/* Reel thumbnails: featured image support + fallback gradients so the grid
   looks right whether or not the client has uploaded a poster image */
.reel-thumb{ background-size:cover; background-position:center; cursor:pointer; }
.reel-thumb.has-image::after{ background:linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.65) 100%); }
.reel-play{ cursor:pointer; }

/* Video modal / lightbox — opens when a portfolio card is clicked */
.video-modal{
  position:fixed; inset:0; z-index:200; display:none;
  align-items:center; justify-content:center;
  background:rgba(10,10,8,.92); padding:24px;
}
.video-modal.open{ display:flex; }
.video-modal-inner{
  position:relative; width:100%; background:#000; border-radius:12px; overflow:hidden;
}
.video-modal-inner.ratio-916{ max-width:420px; aspect-ratio:9/16; }
.video-modal-inner.ratio-11{ max-width:640px; aspect-ratio:1/1; }
.video-modal-inner.ratio-169{ max-width:920px; aspect-ratio:16/9; }
.video-modal-inner iframe,
.video-modal-inner video{ position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-modal-close{
  position:absolute; top:-46px; right:0; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,.2); transition:background .15s ease;
}
.video-modal-close:hover{ background:rgba(255,255,255,.22); }
.video-modal-close svg{ width:16px; height:16px; }
@media (max-width:640px){
  .video-modal-close{ top:-42px; right:0; }
}

/* Testimonial/FAQ content — client edits these in wp-admin using the normal
   editor, so keep the typography sane for whatever they paste in */
.testimonial .quote p{ margin:0; }
.testimonial .quote p + p{ margin-top:10px; }
.faq-a-inner p{ margin:0 0 10px; }
.faq-a-inner p:last-child{ margin-bottom:0; }
.faq-a-inner ul, .faq-a-inner ol{ margin:0 0 10px 18px; padding:0; }

/* Nav menu (wp_nav_menu output) reuses the existing nav-links / mobile-menu look */
.nav-links ul, .mobile-menu ul{ display:contents; }
.nav-links li, .mobile-menu li{ list-style:none; }

/* Skip link (accessibility) */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
  background:var(--ink); color:#fff; padding:12px 20px; z-index:1000; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; top:0; width:auto; height:auto; }

/* WP core alignment classes on rendered content, minimal safety net */
.alignleft{ float:left; margin:0 20px 20px 0; }
.alignright{ float:right; margin:0 0 20px 20px; }
.aligncenter{ display:block; margin:0 auto 20px; }
