/*
Theme Name: Norflo
Theme URI: https://themes.hibotheme.com/norflo/
Author: HiboTheme
Author URI: https://hibotheme.com/
Description: ISP & IPTV Services WordPress Theme
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: norflo
Tags: custom-logo, custom-menu, featured-images
*/

/* ============================================================
   IPTV CANADA PRO — Red / Black / White Edition
   Fonts: Bebas Neue (display) + Inter (body)
   Palette: Pure black #0A0A0A | Crimson red #E8192C | White #FFFFFF
   Vibe: Aggressive luxury, high-urgency, broadcast energy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  --black:      #0A0A0A;
  --deep:       #111111;
  --card:       #161616;
  --border:     #2A2A2A;
  --red:        #E8192C;
  --red-dark:   #B5101E;
  --red-glow:   rgba(232, 25, 44, 0.15);
  --white:      #FFFFFF;
  --off-white:  #F5F5F5;
  --gray:       #888888;
  --font-disp:  'Bebas Neue', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     10px;
  --radius-lg:  18px;
  --ease:       0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--black) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  -webkit-font-smoothing: antialiased !important;
}

::selection { background: var(--red); color: var(--white); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 2px; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title,
.wp-block-heading {
  font-family: var(--font-disp) !important;
  font-weight: 400 !important;
  color: var(--white) !important;
  letter-spacing: 0.03em !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
}

h1 { font-size: clamp(3rem, 8vw, 7rem) !important; }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem) !important; }
h3 { font-size: clamp(1.6rem, 3vw, 2.8rem) !important; }
h4 { font-size: clamp(1.2rem, 2vw, 1.8rem) !important; }

p, li, label, td, span {
  font-family: var(--font-body) !important;
  color: var(--gray) !important;
  font-size: 0.95rem !important;
}

a {
  color: var(--red) !important;
  text-decoration: none !important;
  transition: color var(--ease) !important;
}
a:hover { color: var(--white) !important; }

strong, b { color: var(--white) !important; font-weight: 600 !important; }
em { color: var(--red) !important; font-style: normal !important; }

/* Red accent text */
.text-red, .accent { color: var(--red) !important; }

/* ============================================================
   HEADER
   ============================================================ */

#masthead,
.site-header,
header.site-header {
  background: rgba(10, 10, 10, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
}

/* Red top accent line on header */
#masthead::before,
.site-header::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--red);
  width: 100%;
}

.site-title a,
.custom-logo-link {
  font-family: var(--font-disp) !important;
  font-size: 1.8rem !important;
  letter-spacing: 0.08em !important;
  color: var(--white) !important;
}

.main-navigation a,
.nav-menu a,
#site-navigation a {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--gray) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--ease) !important;
}
.main-navigation a:hover { color: var(--white) !important; }

/* Nav CTA */
.menu-item-cta a,
.nav-cta a {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 0.45rem 1.2rem !important;
}
.menu-item-cta a:hover { background: var(--red-dark) !important; }

/* ============================================================
   HERO
   ============================================================ */

.hero,
.wp-block-cover,
section.hero-section,
.home .site-main > .wp-block-cover:first-child {
  min-height: 95vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
  background: var(--black) !important;
  padding: 6rem 2rem !important;
}

/* Diagonal red stripe behind hero */
.hero::after,
section.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -5%;
  width: 110%;
  height: 200px;
  background: var(--red);
  transform: rotate(-2deg);
  z-index: 0;
  opacity: 0.06;
}

.hero > *, section.hero-section > * { position: relative; z-index: 1; }

.hero h1,
.wp-block-cover__inner-container h1 {
  font-size: clamp(3.5rem, 10vw, 9rem) !important;
  line-height: 0.95 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: 0.02em !important;
}

/* Red underline on hero h1 */
.hero h1 span,
.hero-heading span {
  display: inline-block !important;
  border-bottom: 5px solid var(--red) !important;
  padding-bottom: 0.1em !important;
}

.hero p, .hero-subtitle {
  font-size: 1.1rem !important;
  color: var(--gray) !important;
  max-width: 580px !important;
  margin: 0 auto 2.5rem !important;
}

/* Trust badges */
.hero-badges {
  display: flex !important;
  gap: 1.5rem !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  margin-top: 2.5rem !important;
}

.hero-badge {
  display: flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--gray) !important;
}

.hero-badge::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.wp-block-button__link,
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
button[type="submit"],
.btn {
  font-family: var(--font-disp) !important;
  font-size: 1.1rem !important;
  letter-spacing: 0.12em !important;
  padding: 0.9rem 2.4rem !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  transition: all var(--ease) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-transform: uppercase !important;
}

/* Primary — red fill */
.wp-block-button__link,
.btn-primary,
.woocommerce a.button.alt {
  background: var(--red) !important;
  color: var(--white) !important;
}
.wp-block-button__link:hover,
.btn-primary:hover {
  background: var(--red-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(232, 25, 44, 0.4) !important;
  color: var(--white) !important;
}

/* Secondary — white outline */
.btn-secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--white) !important;
  border: 1.5px solid var(--white) !important;
}
.btn-secondary:hover {
  background: var(--white) !important;
  color: var(--black) !important;
}

/* Ghost — red outline */
.btn-ghost {
  background: transparent !important;
  color: var(--red) !important;
  border: 1.5px solid var(--red) !important;
}
.btn-ghost:hover {
  background: var(--red) !important;
  color: var(--white) !important;
}

/* Pulse hero CTA */
.cta-pulse { animation: redPulse 2.2s ease-in-out infinite !important; }
@keyframes redPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,25,44,0.5); }
  50%       { box-shadow: 0 0 0 16px rgba(232,25,44,0); }
}

/* ============================================================
   PRICING CARDS
   ============================================================ */

.pricing-card,
.woocommerce ul.products li.product,
.wc-block-grid__product,
.price-box {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
  transition: all var(--ease) !important;
  position: relative !important;
  overflow: hidden !important;
}

.pricing-card:hover,
.woocommerce ul.products li.product:hover {
  border-color: var(--red) !important;
  transform: translateY(-8px) !important;
  box-shadow: 0 24px 60px rgba(232, 25, 44, 0.15) !important;
}

/* Featured card */
.pricing-card.popular,
.pricing-card--featured {
  border-color: var(--red) !important;
  background: var(--deep) !important;
  box-shadow: 0 0 0 1px var(--red), 0 20px 60px var(--red-glow) !important;
}

/* Featured top badge */
.pricing-card.popular::before {
  content: '★ BEST VALUE';
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.35rem 0;
}

/* Red left bar on featured */
.pricing-card--featured::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

/* Price */
.pricing-price,
.woocommerce ul.products li.product .price,
.amount {
  font-family: var(--font-disp) !important;
  font-size: 4rem !important;
  color: var(--white) !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
}

.pricing-period {
  font-size: 0.85rem !important;
  color: var(--gray) !important;
}

/* Features list */
.pricing-features li {
  color: var(--gray) !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  font-size: 0.9rem !important;
}
.pricing-features li::before {
  content: '—';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   FEATURE CARDS / GRID
   ============================================================ */

.feature-card,
.services-grid .card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 2rem !important;
  transition: all var(--ease) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Red corner accent */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-top: 40px solid var(--red);
  border-left: 40px solid transparent;
  opacity: 0;
  transition: opacity var(--ease);
}
.feature-card:hover::before { opacity: 0.6; }

.feature-card:hover {
  border-color: var(--red) !important;
  box-shadow: 0 8px 40px var(--red-glow) !important;
  transform: translateY(-4px) !important;
}

.feature-icon {
  width: 50px; height: 50px;
  background: rgba(232, 25, 44, 0.1);
  border: 1px solid rgba(232, 25, 44, 0.3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 1px !important;
  background: var(--border) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}

.stat-item {
  background: var(--card) !important;
  padding: 2rem 1.5rem !important;
  text-align: center !important;
  transition: background var(--ease) !important;
}
.stat-item:hover { background: var(--deep) !important; }

.stat-number {
  font-family: var(--font-disp) !important;
  font-size: 3.5rem !important;
  color: var(--red) !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  display: block !important;
}

.stat-label {
  font-size: 0.75rem !important;
  color: var(--gray) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-top: 0.3rem !important;
  font-weight: 600 !important;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 2rem !important;
  position: relative !important;
  transition: border-color var(--ease) !important;
}
.testimonial-card:hover { border-color: var(--red) !important; }

/* Big red quote mark */
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 0.5rem; left: 1.5rem;
  font-family: var(--font-disp);
  font-size: 6rem;
  color: var(--red);
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  color: var(--off-white) !important;
  font-size: 1rem !important;
  line-height: 1.8 !important;
  margin-bottom: 1.2rem !important;
}

.author-name { color: var(--white) !important; font-weight: 600 !important; font-size: 0.9rem !important; }
.author-role { color: var(--gray) !important; font-size: 0.78rem !important; }
.stars { color: var(--red) !important; font-size: 0.9rem !important; letter-spacing: 2px; }

/* ============================================================
   URGENCY / PROMO BANNER
   ============================================================ */

.urgency-bar,
.promo-banner {
  background: var(--red) !important;
  color: var(--white) !important;
  text-align: center !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* Countdown timer text inside urgency bar */
.countdown { 
  font-family: var(--font-disp) !important; 
  font-size: 1.1rem !important;
  letter-spacing: 0.1em !important;
}

/* ============================================================
   SECTION LABELS
   ============================================================ */

.section-label, .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--red) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--red);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item, details {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.6rem !important;
  background: var(--card) !important;
  overflow: hidden !important;
  transition: border-color var(--ease) !important;
}
.faq-item:hover, details:hover { border-color: var(--red) !important; }

summary, .faq-question {
  padding: 1.2rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--white) !important;
  cursor: pointer !important;
  list-style: none !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

details[open] summary, .faq-question.active {
  color: var(--red) !important;
  border-bottom: 1px solid var(--border) !important;
}

.faq-answer, details[open] > div {
  padding: 1rem 1.5rem !important;
  color: var(--gray) !important;
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
}

/* ============================================================
   FORMS
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea, select {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--white) !important;
  padding: 0.9rem 1rem !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  width: 100% !important;
  outline: none !important;
  transition: border-color var(--ease) !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
}
input::placeholder { color: #555 !important; }

label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--gray) !important;
  display: block !important;
  margin-bottom: 0.4rem !important;
}

/* ============================================================
   DIVIDERS / SECTIONS
   ============================================================ */

hr, .wp-block-separator {
  border: none !important;
  height: 1px !important;
  background: var(--border) !important;
  margin: 3rem 0 !important;
}

section,
.wp-block-group,
.elementor-section {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* Red left border highlight for blockquote */
blockquote {
  border-left: 4px solid var(--red) !important;
  padding-left: 1.5rem !important;
  margin: 2rem 0 !important;
  background: var(--card) !important;
  border-radius: 0 var(--radius) var(--radius) 0 !important;
  padding: 1.5rem 1.5rem 1.5rem 2rem !important;
}

blockquote p { color: var(--off-white) !important; font-size: 1.05rem !important; font-style: italic !important; }

/* ============================================================
   TABLES
   ============================================================ */

table { width: 100% !important; border-collapse: collapse !important; }

th {
  background: var(--red) !important;
  color: var(--white) !important;
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.9rem 1rem !important;
  text-align: left !important;
}

td {
  color: var(--gray) !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 0.9rem !important;
}

tr:hover td { background: var(--card) !important; color: var(--white) !important; }

/* ============================================================
   WOOCOMMERCE
   ============================================================ */

.woocommerce span.onsale {
  background: var(--red) !important;
  color: var(--white) !important;
  border-radius: 4px !important;
  font-family: var(--font-disp) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em !important;
}

.woocommerce del .amount { color: var(--gray) !important; }
.woocommerce ins .amount { color: var(--red) !important; text-decoration: none !important; }

.woocommerce-message {
  background: var(--card) !important;
  border-top-color: var(--red) !important;
  color: var(--white) !important;
}

.woocommerce-cart-form,
.woocommerce-checkout,
.woocommerce-account {
  background: var(--black) !important;
  color: var(--white) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer, #colophon {
  background: var(--deep) !important;
  border-top: 1px solid var(--border) !important;
  color: var(--gray) !important;
}

/* Red top line */
.site-footer::before, #colophon::before {
  content: '';
  display: block;
  height: 2px;
  background: var(--red);
  width: 100%;
}

.site-footer a { color: var(--gray) !important; }
.site-footer a:hover { color: var(--red) !important; }

/* ============================================================
   MOBILE STICKY CTA
   ============================================================ */

.sticky-cta-bar {
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  z-index: 8888 !important;
  background: rgba(10,10,10,0.97) !important;
  border-top: 2px solid var(--red) !important;
  padding: 0.85rem 1rem !important;
  display: none !important;
}

@media (max-width: 768px) {
  .sticky-cta-bar { display: flex !important; gap: 0.75rem !important; }
  .sticky-cta-bar .btn { flex: 1 !important; justify-content: center !important; }
}

/* ============================================================
   CHANNEL GRID (for IPTV specific)
   ============================================================ */

.channel-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  gap: 1px !important;
  background: var(--border) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}

.channel-item {
  background: var(--card) !important;
  padding: 1rem !important;
  text-align: center !important;
  font-size: 0.75rem !important;
  color: var(--gray) !important;
  transition: background var(--ease) !important;
}
.channel-item:hover { background: var(--red) !important; color: var(--white) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  h1 { font-size: clamp(2.8rem, 7vw, 5rem) !important; }
  section, .wp-block-group { padding-top: 4rem !important; padding-bottom: 4rem !important; }
}

@media (max-width: 768px) {
  body { font-size: 15px !important; }
  .hero, .wp-block-cover { min-height: 85vh !important; padding: 4rem 1rem !important; }
  .stats-row { grid-template-columns: 1fr 1fr !important; }
  .wp-block-button__link, .btn { width: 100% !important; justify-content: center !important; }
  .hero-badges { flex-direction: column !important; align-items: center !important; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeUp 0.65s ease both; }
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.35s; }

/* Scanline TV effect for hero (IPTV vibe) */
@keyframes scan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.hero-scanlines::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,0.03) 0px,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 1;
}