/*
Theme Name: Kadence HEVEAPulse
Template: kadence
Version: 1.0.0
Description: HEVEA Pulse child theme - Instagram gradient dark design
*/

/* ── Instagram brand tokens ─────────────────────────── */
:root {
  --bg-base:     #000000;
  --bg-surface:  #0A0A0A;
  --bg-card:     #111111;
  --bg-border:   #262626;
  --bg-elevated: #1A1A1A;
  --text-1:      #F5F5F5;
  --text-2:      #A8A8A8;
  --text-3:      #737373;
  --ig-1: #833AB4;
  --ig-2: #C13584;
  --ig-3: #E1306C;
  --ig-4: #F77737;
  --ig-5: #FCAF45;
  --gradient-ig: linear-gradient(45deg, #833AB4, #C13584, #E1306C, #F77737, #FCAF45);
  --gradient-ig-45: linear-gradient(45deg, #833AB4 0%, #E1306C 50%, #FCAF45 100%);
  --gradient-ig-text: linear-gradient(90deg, #833AB4 0%, #E1306C 40%, #F77737 70%, #FCAF45 100%);
  --glow-ig: rgba(193, 53, 132, 0.2);
}

/* ── Global reset & base ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  background-color: #000 !important;
  color: #F5F5F5 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  line-height: 1.65;
}

/* ── Typography ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  color: #F5F5F5;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p { color: #A8A8A8; }
a { color: #F5F5F5; text-decoration: none; }

/* ── Gradient text ─────────────────────────────── */
.text-gradient-ig {
  background: var(--gradient-ig-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ────────────────────────────────────── */
.btn-ig,
.wp-block-button__link,
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-ig-45) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 9999px !important;
  border: none !important;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.btn-ig:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(193,53,132,0.4);
  color: #fff !important;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 1px solid #262626 !important;
  color: #A8A8A8 !important;
  border-radius: 9999px !important;
  padding: 0.875rem 2rem;
  font-weight: 500;
  transition: border-color 0.18s, color 0.18s;
}

.btn-ghost:hover {
  border-color: rgba(193,53,132,0.5) !important;
  color: #F5F5F5 !important;
}

/* ── Cards ──────────────────────────────────────── */
.hp-card {
  background: #111;
  border: 1px solid #262626;
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hp-card:hover {
  border-color: rgba(193,53,132,0.3);
  box-shadow: 0 0 40px rgba(193,53,132,0.08);
}

/* ── Section layout ──────────────────────────────── */
.hp-section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hp-section { padding: 4rem 1.25rem; }
}

/* ── Images ─────────────────────────────────────── */
.hp-img-panoramic {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

.hp-img-card {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.hp-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .hp-img-grid { grid-template-columns: 1fr; }
  .hp-img-panoramic { height: 280px; }
}

/* ── Kadence overrides ───────────────────────────── */
.site-header,
.site-header-wrap {
  background: rgba(0,0,0,0.85) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.site { background: #000 !important; }

.entry-content p,
.entry-content li {
  color: #A8A8A8;
}

.entry-content h2,
.entry-content h3 { color: #F5F5F5; }

/* ── Orb decorations ──────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.orb-ig {
  background: radial-gradient(circle, rgba(193,53,132,0.25) 0%, rgba(131,58,180,0.1) 60%, transparent 100%);
}

/* ── Animated gradient border ─────────────────────── */
@keyframes gradientRotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.border-animated {
  background: linear-gradient(-45deg, #833AB4, #E1306C, #F77737, #FCAF45, #833AB4);
  background-size: 400% 400%;
  animation: gradientRotate 4s ease infinite;
  padding: 1px;
  border-radius: 16px;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #E1306C; }

/* ── Selection ─────────────────────────────────────── */
::selection { background: rgba(193,53,132,0.3); color: #F5F5F5; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 640px) {
  .btn-ig, .btn-ghost { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER — Dark glass nav
   ═══════════════════════════════════════════════════════════════════════════ */
#masthead,
#masthead.site-header,
.site-header,
.site-header-wrap,
.site-main-header-wrap,
.site-header-row-container-inner,
.site-header-inner-wrap {
  background: rgba(0,0,0,0.92) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.site-main-header-inner-wrap {
  min-height: 70px !important;
}

/* Logo text — gradient */
.site-title,
.site-title a,
.site-title a:hover,
.site-branding .site-title,
a.brand .site-title {
  font-size: 1.125rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  background: linear-gradient(90deg, #F5F5F5 0%, #F5F5F5 40%, #E1306C 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* Nav links */
.main-navigation .primary-menu-container > ul > li.menu-item > a,
.main-navigation .primary-menu-container > ul > li > a {
  color: #A8A8A8 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  transition: color 0.2s ease !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
  color: #F5F5F5 !important;
}

/* Dropdown chevron */
.main-navigation .dropdown-nav-toggle svg {
  color: #525252 !important;
  width: 14px !important;
  height: 14px !important;
}

/* Dropdown submenu */
.header-navigation .header-menu-container ul ul.sub-menu,
.header-navigation .header-menu-container ul ul.submenu {
  background: #0d0d0d !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
  padding: 0.5rem !important;
  min-width: 220px !important;
}

.header-navigation .header-menu-container ul ul li.menu-item {
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
  border-radius: 0 !important;
}

.header-navigation .header-menu-container ul ul li.menu-item:last-child {
  border-bottom: none !important;
}

.header-navigation .header-menu-container ul ul li.menu-item > a {
  color: #A8A8A8 !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  padding: 0.625rem 0.875rem !important;
  border-radius: 8px !important;
  width: auto !important;
  min-width: 200px !important;
  transition: color 0.15s, background 0.15s !important;
}

.header-navigation .header-menu-container ul ul li.menu-item > a:hover,
.header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
  color: #F5F5F5 !important;
  background: rgba(255,255,255,0.05) !important;
  border-radius: 8px !important;
}

/* Header CTA button (injected via JS) */
.hp-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(45deg, #833AB4, #E1306C, #F77737) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  padding: 0.3rem 0.75rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
  margin-left: 1rem !important;
  white-space: nowrap !important;
}
.hp-nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(225,48,108,0.4) !important;
  color: #fff !important;
}

/* Mobile drawer */
#mobile-drawer,
.mobile-navigation,
.drawer-header {
  background: #000 !important;
  border-left: 1px solid rgba(255,255,255,0.06) !important;
}

.mobile-navigation ul li > a,
.mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap {
  color: #A8A8A8 !important;
  border-bottom: 1px solid rgba(255,255,255,0.04) !important;
}

.mobile-navigation ul li > a:hover { color: #F5F5F5 !important; }

.mobile-toggle-open-container .menu-toggle-open,
.mobile-toggle-open-container .menu-toggle-open:focus {
  color: #A8A8A8 !important;
}

.drawer-header .drawer-toggle { color: #A8A8A8 !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL BODY OVERRIDE
   ═══════════════════════════════════════════════════════════════════════════ */
body {
  background: #000 !important;
  color: #F5F5F5 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Force page content area background */
.site-main,
.wp-site-blocks,
.entry-content,
article.page {
  background: #000 !important;
}

/* Remove default Kadence content padding that shows white */
.content-area { margin-top: 0 !important; margin-bottom: 0 !important; }
.entry-content-wrap { padding: 0 !important; }
.entry.single-entry { box-shadow: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO PARALLAX ORBS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-hero-wrap {
  position: relative;
  overflow: hidden;
}

.hp-orb-1 {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131,58,180,0.18) 0%, rgba(193,53,132,0.08) 50%, transparent 100%);
  filter: blur(60px);
  pointer-events: none;
  top: -200px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.hp-orb-2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,119,55,0.12) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  bottom: -100px; left: -80px;
  animation: float2 10s ease-in-out infinite;
}

@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-30px, 20px); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(20px, -25px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT TEXT UTILITY
   ═══════════════════════════════════════════════════════════════════════════ */
.ig-grad {
  background: linear-gradient(90deg, #833AB4 0%, #E1306C 50%, #F77737 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FADE-UP INIT (prevent flash)
   ═══════════════════════════════════════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENTRY HEADER (page title) — hide it (content includes hero)
   ═══════════════════════════════════════════════════════════════════════════ */
.entry-header.page-title,
.entry-hero .entry-header {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE GRID
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hp-2col { grid-template-columns: 1fr !important; }
  .hp-3col { grid-template-columns: 1fr !important; }
}

/* ─── Blog listing ─────────────────────────────────────── */
.hp-blog-card { display:block; background:#111; border:1px solid rgba(255,255,255,0.07); border-radius:20px; overflow:hidden; text-decoration:none; transition:border-color 0.25s,transform 0.25s; }
.hp-blog-card:hover { border-color:rgba(225,48,108,0.4) !important; transform:translateY(-4px) !important; }
.hp-blog-card:hover img { transform:scale(1.04); }
.hp-blog-card img { transition:transform 0.4s; }

/* ─── Article pages ─────────────────────────────────────── */
.single-page article.entry { background:#000 !important; box-shadow:none !important; }
.entry-content p { color:#C8C8C8; font-size:1.0625rem; line-height:1.85; margin-bottom:1.5rem; }
.entry-content h2 { font-size:1.5rem; font-weight:700; color:#F5F5F5; letter-spacing:-0.02em; margin:2.5rem 0 1rem; }
.entry-content h3 { font-size:1.1875rem; font-weight:700; color:#E5E5E5; margin:2rem 0 0.75rem; }
.entry-content ul li, .entry-content ol li { color:#C8C8C8; margin-bottom:0.625rem; }
.entry-content strong { color:#F5F5F5; }
.entry-content blockquote { border-left:3px solid #E1306C; padding-left:1.25rem; color:#A8A8A8; }

/* ═══════════════════════════════════════════════════════════════════════════
   PHONE MOCKUP
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-phone {
  width: 280px;
  background: #0a0a0a;
  border-radius: 40px;
  border: 8px solid #1a1a1a;
  padding: 1.5rem;
  box-shadow: 0 40px 80px rgba(0,0,0,0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.hp-phone-screen {
  background: #000;
  border-radius: 28px;
  overflow: hidden;
}
.hp-phone-notch {
  width: 80px;
  height: 24px;
  background: #0a0a0a;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 1rem;
}

@media (max-width: 768px) {
  .hp-phone { width: 240px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIAL CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-testi-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 1.75rem;
  transition: border-color 0.25s, transform 0.25s;
}
.hp-testi-card:hover {
  border-color: rgba(225,48,108,0.3);
  transform: translateY(-2px);
}
.hp-testi-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(225,48,108,0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STAR RATING
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-stars {
  color: #F77737;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATS COUNTER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #F5F5F5, #A8A8A8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UPLOAD ZONE MOCK
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-upload-zone {
  border: 2px dashed rgba(225,48,108,0.3);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: rgba(225,48,108,0.03);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FILE LIST MOCK
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-file-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid #111;
  font-size: 0.875rem;
  color: #737373;
  font-family: monospace;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT BORDER HOVER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-grad-border {
  position: relative;
}
.hp-grad-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(131,58,180,0.5), rgba(225,48,108,0.5), rgba(247,119,55,0.3));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.hp-grad-border:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION DIVIDER
   ═══════════════════════════════════════════════════════════════════════════ */
.hp-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #833AB4, #E1306C);
  border-radius: 999px;
  margin: 0 auto 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PULSE ANIMATION (badge Live / indicateurs)
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes hp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.95); }
}
.hp-pulse-dot {
  animation: hp-pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT ROTATE KEYFRAME
   ═══════════════════════════════════════════════════════════════════════════ */
@keyframes hp-grad-rotate {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — NAV CTA
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hp-nav-cta {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.625rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — COMPARISON TABLES
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hp-compare-table-wrap,
  .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE — GRIDS 3 COL → 1 COL
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  [class*=hp-grid-3],
  .hp-3col-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY — BODY FONT SIZE
   ═══════════════════════════════════════════════════════════════════════════ */
body {
  font-size: 17px !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER LINKS HOVER
   ═══════════════════════════════════════════════════════════════════════════ */
footer a:hover {
  color: #E1306C !important;
}
