/*!
 * Theme Name: CalisFix
 * Theme URI: https://calisfix.com
 * Description: Custom dark theme for CalisFix — calisthenics & injury rehab app
 * Version: 1.0.0
 * Author: CalisFix
 * Text Domain: calisfix
 */

/* === DESIGN TOKENS === */
:root {
  --bg-primary:   #0a0a0a;
  --bg-secondary: #0d0d0d;
  --bg-card:      #111111;
  --bg-border:    #1c1c1c;
  --accent:       #00D4B4;
  --accent-dark:  #00a892;
  --text-primary: #ffffff;
  --text-muted:   #555555;
  --text-dim:     #333333;
  --bg-footer:    #070707;
  --radius:       10px;
  --radius-sm:    6px;
  --nav-height:   70px;
  --container:    1200px;
}

/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === LAYOUT === */
.cf-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.cf-section { padding: 80px 0; }

/* === TYPOGRAPHY === */
.cf-kicker {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.cf-section-head { margin-bottom: 48px; }
.cf-section-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 10px; }
.cf-section-head p {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.6;
}

/* === BUTTONS === */
.cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.cf-btn-primary { background: var(--accent); color: #000; }
.cf-btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cf-btn-ghost { border: 1.5px solid rgba(255,255,255,0.2); color: var(--text-primary); background: transparent; }
.cf-btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

/* === NAVIGATION === */
.cf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cf-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.cf-nav__logo img { height: 40px; width: auto; }
.cf-nav__links { display: flex; align-items: center; gap: 32px; }
.cf-nav__links a { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 500; transition: color 0.2s; }
.cf-nav__links a:hover { color: #fff; }
a.cf-nav__cta {
  background: var(--accent);
  color: #000;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}
a.cf-nav__cta:hover { background: var(--accent-dark); }
.cf-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.cf-nav__hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.cf-nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(10,10,10,0.98);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
}
.cf-nav__mobile.is-open { display: flex; }
.cf-nav__mobile a { font-size: 15px; color: rgba(255,255,255,0.7); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cf-nav__mobile .cf-nav__cta { display: inline-block; text-align: center; margin-top: 8px; padding: 12px 20px !important; }

/* === HERO === */
.cf-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.cf-hero::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,180,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cf-hero__inner { display: flex; align-items: center; gap: 60px; }
.cf-hero__text { flex: 1; }
.cf-hero__h1 { font-size: clamp(2.5rem, 6vw, 5rem); margin-bottom: 16px; line-height: 1.02; }
.cf-hero__h1 em { color: var(--accent); font-style: normal; }
.cf-hero__ar {
  font-size: 18px;
  color: rgba(255,255,255,0.45);
  direction: rtl;
  margin-bottom: 32px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.cf-hero__stats { display: flex; gap: 32px; margin-bottom: 36px; }
.cf-hero__stat-num { font-size: 28px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.cf-hero__stat-label { font-size: 12px; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.cf-hero__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cf-hero__phone {
  flex-shrink: 0;
  width: 260px; height: 480px;
  background: var(--bg-card);
  border-radius: 32px;
  border: 2px solid var(--bg-border);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.cf-hero__phone-screen { width: 100%; height: calc(100% - 20px); overflow: hidden; }
.cf-hero__phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cf-hero__phone-notch {
  height: 20px; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
}
.cf-hero__phone-notch::before {
  content: ''; width: 60px; height: 5px; background: var(--bg-border); border-radius: 3px;
}

/* === SOCIAL PROOF BAR === */
.cf-proof-bar {
  padding: 18px 0;
  background: rgba(0,212,180,0.06);
  border-top: 1px solid rgba(0,212,180,0.1);
  border-bottom: 1px solid rgba(0,212,180,0.1);
  text-align: center;
}
.cf-proof-bar__text { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.5px; }
.cf-proof-bar__text strong { color: var(--accent); font-weight: 700; }

/* === FEATURES === */
.cf-features { background: var(--bg-primary); }
.cf-features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cf-feat-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.cf-feat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cf-feat-icon {
  width: 48px; height: 48px;
  background: rgba(0,212,180,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.cf-feat-icon svg { width: 22px; height: 22px; fill: var(--accent); }
.cf-feat-card h3 { font-size: 18px; margin-bottom: 10px; }
.cf-feat-card p { font-size: 14px; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1.6; }

/* === TESTIMONIALS === */
.cf-testimonials { background: var(--bg-secondary); }
.cf-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cf-testi-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 28px;
  direction: rtl;
}
.cf-testi-stars { color: var(--accent); font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.cf-testi-text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.cf-testi-text.is-truncated {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cf-testi-expand {
  font-size: 12px; color: var(--accent); cursor: pointer;
  margin-bottom: 16px; display: block;
  background: none; border: none; padding: 0;
  text-align: right; direction: rtl;
}
.cf-testi-expand:hover { text-decoration: underline; }
.cf-testi-author { display: flex; align-items: center; gap: 12px; flex-direction: row-reverse; margin-top: 16px; }
.cf-testi-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--bg-border); overflow: hidden; flex-shrink: 0; }
.cf-testi-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cf-testi-name { font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* === PRICING === */
.cf-pricing { background: var(--bg-primary); }
.cf-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.cf-price-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: border-color 0.2s;
}
.cf-price-card--featured { border-color: var(--accent); transform: scale(1.03); }
.cf-price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000;
  font-size: 10px; font-weight: 800;
  padding: 4px 16px; border-radius: 20px;
  letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap;
}
.cf-price-name { font-size: 14px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.cf-price-amount { font-size: 48px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 4px; letter-spacing: -1px; }
.cf-price-period { font-size: 14px; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin-bottom: 28px; }
.cf-price-features { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.cf-price-features li {
  font-size: 14px; color: rgba(255,255,255,0.7);
  font-weight: 400; text-transform: none; letter-spacing: 0;
  display: flex; align-items: center; gap: 10px;
}
.cf-price-features li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }
.cf-price-btn {
  display: block; width: 100%; text-align: center;
  padding: 14px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 14px;
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.cf-price-card--featured .cf-price-btn { background: var(--accent); color: #000; }
.cf-price-card--featured .cf-price-btn:hover { background: var(--accent-dark); }
.cf-price-card:not(.cf-price-card--featured) .cf-price-btn {
  border: 1.5px solid var(--bg-border); color: var(--text-primary); background: transparent;
}
.cf-price-card:not(.cf-price-card--featured) .cf-price-btn:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }

/* === DOWNLOAD === */
.cf-download { background: linear-gradient(135deg, #0a1e1b 0%, var(--bg-primary) 60%); text-align: center; }
.cf-download h2 { margin-bottom: 16px; }
.cf-download h2 em { color: var(--accent); font-style: normal; }
.cf-download > .cf-container > p { font-size: 16px; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; margin-bottom: 40px; }
.cf-store-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cf-store-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--bg-border);
  border-radius: 12px; padding: 14px 24px;
  transition: all 0.2s; text-decoration: none;
}
.cf-store-btn:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }
.cf-store-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.cf-store-icon svg { width: 28px; height: 28px; fill: #fff; }
.cf-store-text small { display: block; font-size: 10px; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.cf-store-text strong { display: block; font-size: 16px; font-weight: 700; text-transform: none; letter-spacing: 0; }

/* === FOOTER === */
.cf-footer { background: var(--bg-footer); border-top: 1px solid rgba(255,255,255,0.05); padding: 48px 0 32px; }
.cf-footer__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 40px; gap: 40px; }
.cf-footer__logo img { height: 36px; width: auto; }
.cf-footer__nav { display: flex; gap: 28px; }
.cf-footer__nav a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.cf-footer__nav a:hover { color: #fff; }
.cf-footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.05);
  gap: 20px; flex-wrap: wrap;
}
.cf-footer__copy { font-size: 12px; color: var(--text-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.cf-footer__social { display: flex; gap: 10px; }
.cf-footer__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; background: var(--bg-card);
}
.cf-footer__social-link:hover { border-color: var(--accent); background: rgba(0,212,180,0.1); }
.cf-footer__social-link svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.5); }
.cf-footer__social-link:hover svg { fill: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cf-testi-grid { grid-template-columns: 1fr; }
  .cf-pricing-grid { grid-template-columns: 1fr; }
  .cf-price-card--featured { transform: none; }
}
@media (max-width: 768px) {
  .cf-nav__links { display: none; }
  .cf-nav__hamburger { display: flex; }
  .cf-hero__inner { flex-direction: column; gap: 40px; text-align: center; }
  .cf-hero__ar { text-align: center; }
  .cf-hero__stats { justify-content: center; }
  .cf-hero__btns { justify-content: center; }
  .cf-hero__phone { width: 200px; height: 370px; }
  .cf-features__grid { grid-template-columns: 1fr; }
  .cf-footer__top { flex-direction: column; }
  .cf-footer__nav { flex-wrap: wrap; gap: 16px; }
  .cf-footer__bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .cf-section { padding: 60px 0; }
  .cf-hero { padding-top: calc(var(--nav-height) + 20px); }
  .cf-hero__phone { width: 160px; height: 300px; }
  .cf-hero__btns { flex-direction: column; }
  .cf-hero__btns .cf-btn { width: 100%; }
}

/* === WORDPRESS BLOCK EDITOR COMPAT === */
.wp-block-image img { border-radius: var(--radius); }
.wp-block-button__link { background: var(--accent) !important; color: #000 !important; font-weight: 800 !important; border-radius: var(--radius-sm) !important; }
.entry-content p, .entry-content li { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.8; text-transform: none; letter-spacing: 0; font-weight: 400; }
.entry-content h1, .entry-content h2, .entry-content h3 { margin-bottom: 16px; margin-top: 40px; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content ul { list-style: disc; padding-left: 1.5em; }
.entry-content ol { list-style: decimal; padding-left: 1.5em; }
