/*
Theme Name: TubeHalote
Theme URI: https://tubehalote.com
Author: TubeHalote Team
Author URI: https://tubehalote.com
Description: A modern, fast, SEO-optimized one-page WordPress theme for TubeHalote — the all-in-one video and content creation platform.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: tubehalote
*/

/* =========================================
   1. CSS VARIABLES / ROOT
========================================= */
:root {
  --th-primary: #FF4F5E;
  --th-primary-dark: #E63946;
  --th-secondary: #1A1A2E;
  --th-accent: #00C2A8;
  --th-bg: #FFFFFF;
  --th-bg-alt: #F7F8FB;
  --th-text: #1A1A2E;
  --th-text-light: #5C5F70;
  --th-border: #E7E8F0;
  --th-radius: 14px;
  --th-shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --th-shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.14);
  --th-max-width: 1180px;
  --th-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --th-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --th-transition: all 0.25s ease;
}

/* =========================================
   2. RESET & BASE
========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--th-font-body);
  color: var(--th-text);
  background: var(--th-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--th-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--th-secondary);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
p { margin-bottom: 1rem; color: var(--th-text-light); }
.container { max-width: var(--th-max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--th-bg-alt); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--th-primary);
  background: rgba(255, 79, 94, 0.08);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--th-secondary); color: #fff;
  padding: 12px 20px; z-index: 9999;
}
.skip-link:focus { left: 10px; top: 10px; }

/* =========================================
   3. BUTTONS
========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: var(--th-transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--th-primary), var(--th-primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 79, 94, 0.32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(255, 79, 94, 0.4); }
.btn-secondary {
  background: transparent;
  color: var(--th-secondary);
  border: 2px solid var(--th-border);
}
.btn-secondary:hover { border-color: var(--th-secondary); background: var(--th-secondary); color: #fff; }
.btn-light { background: #fff; color: var(--th-secondary); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-lg); }
.btn-block { width: 100%; }

/* =========================================
   4. HEADER / NAV
========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--th-border);
  transition: var(--th-transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: var(--th-max-width); margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 10px; font-family: var(--th-font-heading); font-weight: 800; font-size: 1.5rem; color: var(--th-secondary); }
.site-logo span { color: var(--th-primary); }
.main-navigation ul { display: flex; align-items: center; gap: 36px; }
.main-navigation a {
  font-weight: 600; font-size: 0.95rem; color: var(--th-secondary);
  position: relative; padding: 6px 0; transition: var(--th-transition);
}
.main-navigation a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--th-primary); transition: var(--th-transition);
}
.main-navigation a:hover::after, .main-navigation a.active::after { width: 100%; }
.main-navigation a:hover { color: var(--th-primary); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.menu-toggle span { width: 26px; height: 2px; background: var(--th-secondary); transition: var(--th-transition); }

/* =========================================
   5. HERO
========================================= */
.hero {
  position: relative;
  padding: 110px 0 90px;
  background: radial-gradient(ellipse at top right, rgba(255,79,94,0.10), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(0,194,168,0.10), transparent 60%),
              var(--th-bg);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero-content .eyebrow { background: rgba(0,194,168,0.1); color: var(--th-accent); }
.hero-content h1 { margin-bottom: 22px; }
.hero-content h1 .highlight { color: var(--th-primary); }
.hero-content p.lead { font-size: 1.15rem; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 40px; }
.hero-stat strong { display: block; font-family: var(--th-font-heading); font-size: 1.8rem; color: var(--th-secondary); }
.hero-stat span { font-size: 0.85rem; color: var(--th-text-light); }
.hero-visual { position: relative; }
.hero-visual-card {
  background: var(--th-secondary);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--th-shadow-lg);
  position: relative;
}
.hero-visual-card .mock-screen {
  background: linear-gradient(135deg, #232342, #2c2c52);
  border-radius: 16px;
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.mock-play {
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--th-primary); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px rgba(255,79,94,0.18);
}
.mock-play::after { content: ''; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.float-badge {
  position: absolute; background: #fff; border-radius: var(--th-radius); padding: 14px 18px;
  box-shadow: var(--th-shadow); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.9rem;
}
.float-badge.badge-1 { top: -20px; left: -30px; }
.float-badge.badge-2 { bottom: -24px; right: -20px; }
.float-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--th-accent); }

/* =========================================
   6. FEATURES
========================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius);
  padding: 36px 30px; transition: var(--th-transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--th-shadow-lg); border-color: transparent; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--th-primary), var(--th-primary-dark));
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: #fff;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card:nth-child(3n+2) .feature-icon { background: linear-gradient(135deg, var(--th-accent), #00958a); }
.feature-card:nth-child(3n+3) .feature-icon { background: linear-gradient(135deg, #6C63FF, #4b43d6); }

/* =========================================
   7. ABOUT / ARTICLE
========================================= */
.about-wrap { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-content h2 { margin-top: 2.2rem; }
.about-content h3 { margin-top: 1.6rem; }
.about-content p { font-size: 1.02rem; }
.about-content ul { margin: 0 0 1.2rem 0; }
.about-content ul li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--th-text-light); }
.about-content ul li::before {
  content: ''; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; border-radius: 4px;
  background: var(--th-primary);
}
.pull-quote {
  border-left: 4px solid var(--th-primary); padding: 18px 26px; background: var(--th-bg-alt);
  border-radius: 0 var(--th-radius) var(--th-radius) 0; font-style: italic; font-size: 1.1rem;
  margin: 28px 0; color: var(--th-secondary);
}

/* =========================================
   8. USE CASES
========================================= */
.usecases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.usecase-card {
  background: #fff; border-radius: var(--th-radius); padding: 32px; box-shadow: var(--th-shadow);
  display: flex; flex-direction: column; gap: 14px;
}
.usecase-card .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--th-accent); text-transform: uppercase; letter-spacing: 1px; }
.usecase-card .scroll-link { margin-top: auto; font-weight: 700; color: var(--th-primary); display: inline-flex; align-items: center; gap: 6px; }
.usecase-card .scroll-link:hover { gap: 10px; }

/* =========================================
   9. BLOG SECTION
========================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card {
  background: #fff; border-radius: var(--th-radius); overflow: hidden; border: 1px solid var(--th-border);
  transition: var(--th-transition); display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--th-shadow-lg); }
.blog-card .blog-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--th-bg-alt); }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: var(--th-transition); }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.blog-meta { font-size: 0.8rem; color: var(--th-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-body h3 { font-size: 1.18rem; }
.blog-card-body h3 a:hover { color: var(--th-primary); }
.blog-excerpt { font-size: 0.92rem; flex-grow: 1; }
.read-more { font-weight: 700; color: var(--th-secondary); display: inline-flex; align-items: center; gap: 6px; margin-top: auto; }
.read-more:hover { color: var(--th-primary); }
.no-posts { text-align: center; color: var(--th-text-light); padding: 40px; }

/* =========================================
   10. CTA SECTION
========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--th-secondary), #2a2a4d);
  border-radius: 28px;
  padding: 70px 50px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,79,94,0.25), transparent 70%); top: -150px; right: -100px;
}
.cta-section h2, .cta-section p { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* =========================================
   11. CONTACT
========================================= */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.contact-info-card {
  background: var(--th-secondary); color: #fff; border-radius: var(--th-radius); padding: 40px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card p { color: rgba(255,255,255,0.7); }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .ci-icon {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; transition: var(--th-transition);
}
.social-links a:hover { background: var(--th-primary); transform: translateY(-3px); }
.contact-form-card { background: #fff; border: 1px solid var(--th-border); border-radius: var(--th-radius); padding: 40px; box-shadow: var(--th-shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.92rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--th-border); border-radius: 10px;
  font-family: inherit; font-size: 0.96rem; transition: var(--th-transition); background: var(--th-bg-alt);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--th-primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
.wpcf7-form p { margin-bottom: 0; }

/* =========================================
   12. FOOTER
========================================= */
.site-footer { background: var(--th-secondary); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .site-logo { color: #fff; }
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 280px; margin-top: 14px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); transition: var(--th-transition); }
.footer-col ul li a:hover { color: var(--th-primary); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.back-to-top {
  width: 44px; height: 44px; border-radius: 50%; background: var(--th-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================
   13. RESPONSIVE
========================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .main-navigation { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: #fff; flex-direction: column; padding: 100px 30px 30px; transition: var(--th-transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.1); z-index: 1000; }
  .main-navigation.is-open { right: 0; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 24px; }
  .menu-toggle { display: flex; }
  .header-cta .btn-secondary { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .cta-section { padding: 50px 24px; }
}
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
