/*!
Theme Name: RingSafe
Theme URI: https://ringsafe.in
Author: Manish Garg · RingSafe
Author URI: https://ringsafe.in/about/
Description: Premium dark cybersecurity consultancy theme. Purpose-built for Indian VAPT, DPDP, and cloud security practices. Features: HTB-style Academy with gated content, integrated bbPress community, GamiPress XP system, Razorpay paywall, Rank Math SEO ready, LiteSpeed-compatible, Nextend Social Login (Google OAuth) ready. Conversion-optimised for lead generation.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Proprietary — © RingSafe
License URI: https://ringsafe.in/
Text Domain: ringsafe
Tags: dark, one-page, blog, business, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready, cybersecurity, consultancy
*/

/* ════════════════════════════════════════════
   RESET & ROOT
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #08091A;
  --bg2:          #0D1228;
  --bg3:          #111827;
  --card:         rgba(255,255,255,0.03);
  --cyan:         #00F0FF;
  --cyan-dim:     rgba(0,240,255,0.1);
  --cyan-glow:    rgba(0,240,255,0.25);
  --violet:       #7B2FBE;
  --violet-dim:   rgba(123,47,190,0.15);
  --green:        #00FF88;
  --white:        #F0F4FF;
  --muted:        #8892A4;
  --faint:          #8a9cb5;
  --border:       rgba(0,240,255,0.1);
  --border2:      rgba(0,240,255,0.28);
  --glow:         0 0 30px rgba(0,240,255,0.18);
  --glow2:        0 0 60px rgba(0,240,255,0.32);
  --radius:       14px;
  --radius-sm:    8px;
  --ease:         cubic-bezier(0.4,0,0.2,1);
  /* Fluid spacing */
  --space-xs:     clamp(8px,1vw,12px);
  --space-sm:     clamp(16px,2vw,24px);
  --space-md:     clamp(24px,3vw,40px);
  --space-lg:     clamp(28px,3.5vw,56px);
  --space-xl:     clamp(40px,5vw,72px);
  /* Fluid type scale */
  --text-xs:      clamp(0.7rem,1.2vw,0.78rem);
  --text-sm:      clamp(0.82rem,1.4vw,0.92rem);
  --text-base:    clamp(0.92rem,1.6vw,1rem);
  --text-lg:      clamp(1rem,1.8vw,1.15rem);
  --text-xl:      clamp(1.15rem,2.2vw,1.4rem);
  --text-2xl:     clamp(1.4rem,3vw,2rem);
  --text-3xl:     clamp(1.8rem,4vw,2.8rem);
  --text-4xl:     clamp(2.2rem,5vw,3.5rem);
  --text-hero:    clamp(2rem,4.5vw,3.6rem);
}

html {
  scroll-behavior: smooth;
  /* Prevent layout shift on zoom — respect user zoom */
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Ensure body fills screen on all devices */
  min-height: 100svh;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,240,255,0.4); }

/* ════════════════════════════════════════════
   TYPOGRAPHY — fluid & zoom-safe
════════════════════════════════════════════ */
h1 { font-size: var(--text-hero);  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl);   font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: var(--text-2xl);   font-weight: 600; line-height: 1.25; }
h4 { font-size: var(--text-xl);    font-weight: 600; line-height: 1.3;  }
h5 { font-size: var(--text-base);  font-weight: 700; }
p  { color: var(--muted); line-height: 1.8; }
a  { color: var(--cyan); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: #fff; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Focus visible — accessibility */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ════════════════════════════════════════════
   LAYOUT — fluid containers
════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: min(1680px, 95vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.container-sm {
  width: 100%;
  max-width: min(800px, 96vw);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}
.section    { padding: var(--space-xl) 0; }
.section-sm { padding: var(--space-lg) 0; }

/* ════════════════════════════════════════════
   LABEL / BADGE
════════════════════════════════════════════ */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan);
  padding: 5px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--cyan-dim);
  margin-bottom: 20px;
}
.label::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
  animation: pulse-dot 2s infinite; flex-shrink: 0;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

/* ════════════════════════════════════════════
   GRADIENT TEXT
════════════════════════════════════════════ */
.grad {
  background: linear-gradient(135deg, var(--cyan), #8BE8FF, var(--violet));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.grad-green {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ════════════════════════════════════════════
   BUTTONS — touch-friendly sizing
════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: clamp(12px,1.5vw,15px) clamp(20px,3vw,34px);
  border-radius: 100px; font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.03em;
  cursor: pointer; border: none;
  transition: all 0.3s var(--ease); font-family: inherit;
  text-decoration: none; white-space: nowrap;
  min-height: 44px; /* WCAG touch target */
}
.btn-primary {
  background: var(--cyan); color: #070C1A;
  box-shadow: 0 0 0 0 var(--cyan-glow);
}
.btn-primary:hover {
  background: #fff; color: #070C1A;
  box-shadow: 0 0 40px var(--cyan-glow), 0 8px 30px rgba(0,240,255,.25);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  border-color: var(--cyan); color: var(--cyan);
  box-shadow: var(--glow), inset 0 0 20px var(--cyan-dim);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════
   CARDS
════════════════════════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(20px,3vw,36px);
  transition: all 0.35s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(135deg, var(--cyan-dim), transparent 60%);
  opacity:0; transition: opacity 0.35s var(--ease);
}
.card:hover { border-color: var(--border2); box-shadow: var(--glow); transform: translateY(-5px); }
.card:hover::before { opacity:1; }

/* ════════════════════════════════════════════
   ICON BOX
════════════════════════════════════════════ */
.icon-box {
  width: clamp(44px,5vw,56px); height: clamp(44px,5vw,56px);
  border-radius: var(--radius-sm); background: var(--cyan-dim);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; transition: all 0.3s var(--ease); flex-shrink: 0;
}
.icon-box svg { width: clamp(20px,3vw,26px); height: clamp(20px,3vw,26px); color: var(--cyan); }
.card:hover .icon-box { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan-glow); }
.card:hover .icon-box svg { color: #070C1A; }

/* ════════════════════════════════════════════
   SECTION HEADING
════════════════════════════════════════════ */
.section-heading { margin-bottom: clamp(36px,5vw,60px); }
.section-heading.centered { text-align: center; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading p { font-size: var(--text-lg); max-width: 600px; }
.section-heading.centered p { margin: 0 auto; }

/* ════════════════════════════════════════════
   DIVIDER
════════════════════════════════════════════ */
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: clamp(14px,2vw,22px) 0; transition: all 0.4s var(--ease);
}
#site-nav.scrolled {
  padding: 12px 0;
  background: rgba(8,9,26,0.94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo {
  font-size: clamp(1rem,2vw,1.15rem); font-weight: 800; letter-spacing: 0.04em;
  color: var(--white); display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: clamp(32px,4vw,38px); height: clamp(32px,4vw,38px); border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px var(--cyan-glow); flex-shrink: 0;
}
.nav-logo .logo-icon svg { width: clamp(16px,2.5vw,20px); height: clamp(16px,2.5vw,20px); color: #070C1A; }
.nav-logo .logo-mark { width: clamp(36px,4.4vw,44px); height: clamp(36px,4.4vw,44px); flex-shrink: 0; object-fit: contain; }
.nav-logo span em { color: var(--cyan); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); font-size: var(--text-sm); font-weight: 500;
  padding: 8px 14px; border-radius: 100px; transition: all 0.3s var(--ease);
  text-decoration: none; white-space: nowrap; min-height: 44px;
  display: flex; align-items: center;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-cta { margin-left: 8px; flex-shrink: 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 10px; background: none; border: none; min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ════════════════════════════════════════════
   MOBILE / TABLET NAV
════════════════════════════════════════════ */
@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }

  .nav-links.open {
    display: flex; flex-direction: column; gap: 6px;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8,9,26,0.98); backdrop-filter: blur(24px);
    padding: 100px clamp(20px,5vw,40px) 40px;
    align-items: flex-start; z-index: 998; overflow-y: auto;
  }
  .nav-links.open a {
    font-size: var(--text-xl); padding: 14px 0; width: 100%;
    border-bottom: 1px solid var(--border); border-radius: 0;
  }
  .nav-links.open a:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
#hero {
  min-height: 100svh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: clamp(100px,15vh,160px) 0 clamp(80px,10vh,120px);
}
#hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; will-change: transform; }
.hero-gradient {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0,240,255,0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(123,47,190,0.08), transparent);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: min(1280px, 95vw); margin: 0 auto; padding: 0 clamp(16px,4vw,32px);
}
.hero-content .label { margin-bottom: 28px; }
.hero-title { margin-bottom: 24px; }
.hero-title .line2 { display: block; color: var(--muted); font-weight: 300; }
.hero-sub {
  font-size: var(--text-lg); color: var(--muted);
  max-width: min(760px,92vw); margin: 0 auto 40px; line-height: 1.75;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(40px,6vw,70px); }
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(14px,2vw,28px); flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--text-xs); font-weight: 500; }
.trust-item svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; }
.trust-sep { width: 1px; height: 18px; background: var(--border); }
.scroll-indicator {
  position: absolute; bottom: clamp(20px,4vh,40px); left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--faint); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-8px)} }

/* ════════════════════════════════════════════
   STATS BAR
════════════════════════════════════════════ */
.stats-bar { padding: clamp(36px,5vw,56px) 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { text-align: center; padding: clamp(16px,2vw,24px) clamp(12px,2vw,20px); border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: var(--text-4xl); font-weight: 800; display: block; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: var(--text-xs); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ════════════════════════════════════════════
   SERVICES GRID
════════════════════════════════════════════ */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,2vw,22px); }
.service-card h3 { margin: 14px 0 10px; font-size: var(--text-xl); }
.service-card p { font-size: var(--text-sm); margin: 0; }
.service-card .s-num { font-size: var(--text-xs); color: var(--cyan); font-weight: 700; letter-spacing: 0.12em; margin-bottom: 16px; display: block; opacity: 0.7; }

/* ════════════════════════════════════════════
   WHY US
════════════════════════════════════════════ */
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,2vw,22px); margin-top: clamp(36px,5vw,56px); }
.why-item { padding: clamp(20px,3vw,32px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.3s var(--ease); }
.why-item:hover { border-color: var(--border2); transform: translateY(-3px); }
.why-item h4 { margin: 14px 0 8px; font-size: var(--text-base); }
.why-item p { font-size: var(--text-sm); margin: 0; }
.why-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--violet-dim); border: 1px solid rgba(123,47,190,0.25); display: flex; align-items: center; justify-content: center; }
.why-icon svg { width: 22px; height: 22px; color: #A855F7; }

/* ════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════ */
.process-track { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: clamp(40px,6vw,70px); position: relative; }
.process-track::before {
  content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(to right, var(--border), var(--cyan-dim), var(--border)); z-index: 0;
}
.process-step { text-align: center; padding: 0 clamp(8px,2vw,20px); position: relative; z-index: 1; }
.step-circle {
  width: clamp(50px,6vw,62px); height: clamp(50px,6vw,62px); border-radius: 50%;
  border: 2px solid var(--border2); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; font-size: var(--text-sm); font-weight: 700; color: var(--cyan);
  transition: all 0.3s var(--ease); position: relative;
}
.step-circle::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--cyan-dim); transition: all 0.3s var(--ease);
}
.process-step:hover .step-circle { background: var(--cyan); color: #070C1A; border-color: var(--cyan); box-shadow: var(--glow2); }
.process-step:hover .step-circle::after { border-color: var(--cyan); }
.process-step h4 { font-size: var(--text-sm); color: var(--white); margin-bottom: 8px; }
.process-step p { font-size: var(--text-xs); }

/* ════════════════════════════════════════════
   TRUST SECTION
════════════════════════════════════════════ */
.trust-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(14px,2vw,22px); margin-top: clamp(36px,5vw,56px); }
.trust-card { padding: clamp(20px,3vw,32px); }
.trust-card h4 { margin-bottom: 10px; color: var(--white); font-size: var(--text-base); }
.trust-card p { font-size: var(--text-sm); margin: 0; }

/* ════════════════════════════════════════════
   CTA BLOCK
════════════════════════════════════════════ */
.cta-block {
  background: var(--bg2); border: 1px solid var(--border); border-radius: clamp(16px,3vw,24px);
  padding: clamp(48px,8vw,90px) clamp(28px,6vw,70px); text-align: center; position: relative; overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,240,255,0.07), transparent 70%);
  pointer-events: none;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block > p { font-size: var(--text-lg); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: var(--text-xs); color: var(--faint); margin-top: 20px; }

/* ════════════════════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════════════════════ */
.page-hero {
  padding: clamp(120px,15vh,180px) 0 clamp(60px,8vh,100px); text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,240,255,0.06), transparent);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: var(--text-lg); max-width: 720px; margin: 0 auto; }

/* ════════════════════════════════════════════
   SERVICES DETAIL
════════════════════════════════════════════ */
.service-detail { padding: clamp(50px,7vw,80px) 0; border-bottom: 1px solid var(--border); }
.service-detail:last-child { border-bottom: none; }
.service-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px,5vw,70px); align-items: center; }
.service-layout.reverse { direction: rtl; }
.service-layout.reverse > * { direction: ltr; }
.service-sidebar h3 { font-size: var(--text-3xl); margin: 16px 0 12px; }
.service-sidebar p { font-size: var(--text-sm); }
.service-body h4 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--cyan); margin-bottom: 16px; }
.service-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature-item {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: clamp(12px,2vw,18px); font-size: var(--text-sm); color: var(--muted);
  display: flex; gap: 10px; align-items: flex-start; transition: all 0.3s var(--ease);
}
.feature-item:hover { border-color: var(--border2); color: var(--white); }
.feature-item svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.about-intro h2 { margin-bottom: 20px; }
.about-accent { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; background: var(--cyan-dim); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 28px; }
.about-accent svg { width: 24px; height: 24px; color: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.about-accent p { margin: 0; font-size: var(--text-sm); color: var(--white); }
.founder-block { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px,4vw,50px); align-items: center; padding: clamp(28px,4vw,52px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.founder-avatar { width: clamp(100px,12vw,150px); height: clamp(100px,12vw,150px); border-radius: 50%; border: 2px solid var(--border2); overflow: hidden; box-shadow: 0 0 30px var(--cyan-dim); flex-shrink: 0; }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.founder-info h3 { font-size: var(--text-3xl); margin-bottom: 6px; }
.founder-role { color: var(--cyan); font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; display: block; }
.founder-bio { font-size: var(--text-sm); }
.creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cred-badge { padding: 5px 14px; border-radius: 100px; background: var(--cyan-dim); border: 1px solid var(--border); font-size: var(--text-xs); color: var(--cyan); font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(14px,2vw,22px); }
.value-item { padding: clamp(20px,3vw,30px); }
.value-item h4 { margin-bottom: 8px; font-size: var(--text-base); }
.value-item p { font-size: var(--text-sm); margin: 0; }
.value-num { font-size: clamp(2rem,4vw,2.8rem); font-weight: 900; line-height: 1; margin-bottom: 12px; opacity: 0.12; }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(36px,6vw,70px); align-items: start; }
.contact-info h3 { font-size: var(--text-3xl); margin-bottom: 16px; }
.contact-info p { font-size: var(--text-sm); margin-bottom: 30px; }
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--cyan-dim); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; color: var(--cyan); }
.contact-item-text strong { display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.contact-item-text span { font-size: var(--text-sm); color: var(--white); }
.contact-form-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px,4vw,44px); }

/* WPForms overrides */
.wpforms-form .wpforms-field-label { color:var(--muted)!important; font-size:var(--text-xs)!important; font-weight:700!important; text-transform:uppercase!important; letter-spacing:0.08em!important; margin-bottom:8px!important; }
.wpforms-form input[type=text],.wpforms-form input[type=email],.wpforms-form textarea,.wpforms-form select { background:var(--bg)!important; border:1px solid var(--border)!important; color:var(--white)!important; border-radius:var(--radius-sm)!important; padding:13px 16px!important; font-size:var(--text-sm)!important; width:100%!important; font-family:inherit!important; transition:border-color 0.3s!important; }
.wpforms-form input:focus,.wpforms-form textarea:focus { border-color:var(--cyan)!important; outline:none!important; box-shadow:0 0 0 3px var(--cyan-dim)!important; }
.wpforms-form textarea { min-height:120px!important; resize:vertical!important; }
.wpforms-form button[type=submit] { background:var(--cyan)!important; color:#070C1A!important; font-weight:700!important; border-radius:100px!important; padding:14px 36px!important; font-size:var(--text-sm)!important; border:none!important; cursor:pointer!important; transition:all 0.3s!important; font-family:inherit!important; min-height:48px!important; }
.wpforms-form button[type=submit]:hover { background:#fff!important; box-shadow:0 0 30px var(--cyan-glow)!important; }

/* ════════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.3s; }
.faq-item:has(.faq-q.open) { border-color: var(--border2); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: clamp(16px,2.5vw,22px) clamp(18px,3vw,28px); color: var(--white);
  font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: inherit; transition: background 0.3s var(--ease); min-height: 56px;
}
.faq-q:hover { background: var(--card); }
.faq-q svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; transition: transform 0.35s var(--ease); }
.faq-q.open svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 clamp(18px,3vw,28px) clamp(16px,2.5vw,22px); color: var(--muted); font-size: var(--text-sm); line-height: 1.8; }
.faq-a.open { display: block; animation: fade-in 0.3s var(--ease); }
@keyframes fade-in { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }

/* ════════════════════════════════════════════
   BLOG INDEX
════════════════════════════════════════════ */
.featured-inner { transition: all 0.35s var(--ease); }
.featured-post:hover .featured-inner { border-color: var(--border2); box-shadow: var(--glow); }
.post-card { text-decoration: none; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card:hover { border-color: var(--border2); box-shadow: var(--glow); transform: translateY(-5px); }

/* Pagination */
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--muted); font-size: var(--text-sm);
  font-weight: 600; transition: all 0.3s var(--ease); text-decoration: none;
}
.page-numbers:hover, .page-numbers.current { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.page-numbers.prev, .page-numbers.next { padding: 0 20px; }
.page-numbers.dots { border: none; cursor: default; }
.page-numbers.dots:hover { background: none; box-shadow: none; }

.post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 60px; align-items: start; }
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none !important; }
}

/* ════════════════════════════════════════════
   SINGLE POST TYPOGRAPHY
════════════════════════════════════════════ */
.post-body { color: var(--muted); font-size: var(--text-base); line-height: 1.9; }
.post-body h2 { color: var(--white); font-size: var(--text-3xl); margin: clamp(32px,5vw,50px) 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.post-body h3 { color: var(--white); font-size: var(--text-2xl); margin: clamp(24px,4vw,36px) 0 12px; }
.post-body p { margin-bottom: 20px; }
.post-body ul,.post-body ol { padding-left: 0; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.post-body ul li { padding-left: 26px; position: relative; }
.post-body ul li::before { content:''; position:absolute; left:0; top:11px; width:8px; height:8px; border-radius:50%; background:var(--cyan); }
.post-body ol { counter-reset: ol; }
.post-body ol li { padding-left: 28px; position: relative; counter-increment: ol; }
.post-body ol li::before { content:counter(ol)"."; position:absolute; left:0; top:0; color:var(--cyan); font-weight:700; font-size:0.85em; }
.post-body strong { color: var(--white); }
.post-body a { color: var(--cyan); border-bottom: 1px solid var(--border); transition: all 0.3s; }
.post-body a:hover { border-color: var(--cyan); color: #fff; }
.post-body blockquote { border-left: 3px solid var(--cyan); padding: clamp(14px,2vw,20px) clamp(18px,3vw,28px); background: var(--cyan-dim); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: clamp(20px,3vw,32px) 0; font-style: italic; }
.post-body code { background: var(--bg2); border: 1px solid var(--border); border-radius: 4px; padding: 2px 8px; font-size: 0.88em; color: var(--cyan); font-family: 'JetBrains Mono', 'Fira Code', monospace; }
.post-body pre { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: clamp(18px,3vw,28px); overflow-x: auto; margin-bottom: 24px; position: relative; }
.post-body pre code { background: none; border: none; padding: 0; color: var(--white); }
.post-body img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 8px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: var(--text-sm); overflow-x: auto; display: block; }
.post-body th,.post-body td { padding: clamp(10px,1.5vw,14px) clamp(12px,2vw,18px); border: 1px solid var(--border); text-align: left; }
.post-body th { background: var(--card); color: var(--cyan); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; }
.post-body tr:hover td { background: var(--card); }

/* ════════════════════════════════════════════
   READING PROGRESS BAR
════════════════════════════════════════════ */
#reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 9999;
  background: linear-gradient(to right, var(--cyan), var(--violet));
  width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   BACK TO TOP
════════════════════════════════════════════ */
#back-to-top {
  position: fixed; bottom: clamp(20px,4vw,36px); right: clamp(20px,4vw,36px);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 900; opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease); box-shadow: var(--glow);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: var(--cyan); border-color: var(--cyan); box-shadow: var(--glow2); }
#back-to-top:hover svg { color: #070C1A; }
#back-to-top svg { width: 20px; height: 20px; color: var(--cyan); transition: color 0.3s; }

/* ════════════════════════════════════════════
   TOAST NOTIFICATION
════════════════════════════════════════════ */
#toast {
  position: fixed; bottom: clamp(20px,4vw,36px); left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--bg2); border: 1px solid var(--border2); border-radius: 100px;
  padding: 12px 24px; font-size: var(--text-sm); color: var(--white);
  z-index: 9999; opacity: 0; transition: all 0.4s var(--ease);
  white-space: nowrap; display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast svg { width: 16px; height: 16px; color: var(--cyan); }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
#site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: clamp(50px,8vw,80px) 0 clamp(24px,4vw,40px); }
.footer-top { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: clamp(28px,4vw,56px); margin-bottom: clamp(40px,6vw,70px); }
.footer-brand p { font-size: var(--text-sm); margin: 14px 0 0; max-width: 280px; }
.footer-col h5 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 18px; font-weight: 700; }
.footer-col a { color: var(--muted); font-size: var(--text-sm); margin-bottom: 10px; transition: color 0.3s; min-height: 32px; display: flex; align-items: center; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); }
.footer-bottom p { margin: 0; font-size: var(--text-xs); color: var(--faint); }
.footer-bottom p span { color: var(--cyan); }

/* ════════════════════════════════════════════
   SCROLL ANIMATIONS
════════════════════════════════════════════ */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(1) { transition-delay: 0s; }
.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.24s; }
.fade-up:nth-child(5) { transition-delay: 0.32s; }
.fade-up:nth-child(6) { transition-delay: 0.40s; }

/* ════════════════════════════════════════════
   PRINT STYLES
════════════════════════════════════════════ */
@media print {
  #site-nav, #back-to-top, #toast, #reading-progress, .hero-ctas, .cta-block, #site-footer { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .post-body { color: #222 !important; }
  .post-body h2, .post-body h3, .post-body strong { color: #000 !important; }
  a { color: #000 !important; }
}

/* ════════════════════════════════════════════
   LARGE SCREENS / TV (1600px+)
════════════════════════════════════════════ */
@media (min-width: 1600px) {
  .container { max-width: 1760px; }
  .container-sm { max-width: 900px; }
}
@media (min-width: 2200px) {
  /* 4K / TV screens */
  :root {
    --text-base: 1.1rem;
    --text-hero: 6rem;
  }
  .container { max-width: 1600px; }
}

/* ════════════════════════════════════════════
   TABLET (820px - 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-layout,.service-layout.reverse { grid-template-columns: 1fr; direction: ltr; gap: 28px; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: repeat(3,1fr); gap: clamp(20px,3vw,40px); }
  .process-track::before { display: none; }
}

/* ════════════════════════════════════════════
   MOBILE (max 768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .process-track { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .founder-block { grid-template-columns: 1fr; text-align: center; }
  .founder-avatar { margin: 0 auto; }
  .creds { justify-content: center; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-features { grid-template-columns: 1fr; }
  #post-grid { grid-template-columns: repeat(2,1fr) !important; }
  .featured-inner { grid-template-columns: 1fr !important; }
  .featured-inner > div:first-child { min-height: 200px !important; }
}

/* ════════════════════════════════════════════
   SMALL MOBILE (max 480px)
════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .hero-trust { gap: 12px; }
  .trust-sep { display: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .process-track { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  #post-grid { grid-template-columns: 1fr !important; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }
  .service-features { grid-template-columns: 1fr; }
  .contact-layout { gap: 32px; }
  /* Single post sidebar hidden on small screens */
  .post-sidebar { display: none !important; }
  .post-grid-layout { grid-template-columns: 1fr !important; }
}

/* ════════════════════════════════════════════
   LANDSCAPE PHONE
════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  #hero { min-height: auto; padding: 100px 0 60px; }
  .scroll-indicator { display: none; }
}

/* ════════════════════════════════════════════
   HIGH CONTRAST / PREFERS-REDUCED-MOTION
════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.1ms !important; }
  .fade-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

@media (prefers-contrast: high) {
  :root { --border: rgba(0,240,255,0.4); --border2: rgba(0,240,255,0.7); --muted: #BAC4D0; }
}

/* ════════════════════════════════════════════
   SECURITY SCORECARD
════════════════════════════════════════════ */
.sc-opt:hover {
  border-color: var(--border2) !important;
  color: var(--white) !important;
  background: var(--card) !important;
}
.sc-opt:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ════════════════════════════════════════════
   WHATSAPP FLOAT BUTTON
════════════════════════════════════════════ */
#whatsapp-float {
  position: fixed; bottom: clamp(20px,4vw,36px); left: clamp(20px,4vw,36px);
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 900; transition: all 0.3s var(--ease);
  text-decoration: none;
}
#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
  color: #fff;
}
@media (max-width: 480px) {
  #whatsapp-float { width: 50px; height: 50px; }
  #whatsapp-float svg { width: 24px; height: 24px; }
}

/* ════════════════════════════════════════════
   PAGE CONTENT (privacy, terms, generic pages)
════════════════════════════════════════════ */
.page-content {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
}
.page-content > *:first-child { margin-top: 0; }
.page-content > *:last-child { margin-bottom: 0; }
.page-content h2 {
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin: 44px 0 14px;
  letter-spacing: -0.015em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 30px 0 10px;
}
.page-content p { margin: 0 0 18px; }
.page-content ul, .page-content ol { margin: 0 0 22px; padding-left: 24px; }
.page-content li { margin: 0 0 10px; line-height: 1.75; }
.page-content li::marker { color: var(--cyan); }
.page-content strong { color: var(--white); font-weight: 600; }
.page-content a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,240,255,0.3);
  transition: border-color 0.2s;
}
.page-content a:hover { border-bottom-color: var(--cyan); }
.page-content blockquote {
  margin: 22px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--cyan);
  background: var(--cyan-dim);
  color: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.page-content code {
  background: var(--bg2);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

/* ════════════════════════════════════════════
   RESPONSIVE IMPROVEMENTS (all devices)
════════════════════════════════════════════ */

/* Prevent any element from overflowing viewport */
html, body { overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; height: auto; }

/* Tables responsive */
.page-content table { width: 100%; border-collapse: collapse; margin: 22px 0; display: block; overflow-x: auto; }
.page-content th, .page-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.page-content th { background: var(--bg2); color: var(--white); }

/* Laptop (1025 - 1440px) — tighten hero heights */
@media (min-width: 1025px) and (max-width: 1440px) {
  .page-hero { padding: clamp(90px, 12vh, 130px) 0 clamp(30px, 5vh, 60px); }
  .hero { min-height: 90svh; }
}

/* Tablet page-content adjustments */
@media (max-width: 1024px) {
  .page-content { padding: clamp(24px, 4vw, 40px); font-size: 1rem; }
  .page-content h2 { font-size: 1.4rem; margin: 36px 0 12px; }
  .page-content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
}

/* Mobile page-content */
@media (max-width: 640px) {
  .page-content { padding: 22px 18px; font-size: 0.98rem; line-height: 1.75; }
  .page-content h2 { font-size: 1.25rem; margin: 30px 0 10px; padding-bottom: 8px; }
  .page-content h3 { font-size: 1.05rem; }
  .page-content ul, .page-content ol { padding-left: 20px; }
  .page-hero { padding: clamp(80px, 12vh, 110px) 0 clamp(24px, 4vh, 40px) !important; }
  .page-hero h1 { font-size: clamp(1.7rem, 6vw, 2.4rem) !important; }
}

/* Ensure CTAs stack neatly on mobile */
@media (max-width: 640px) {
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .cta-buttons .btn { justify-content: center; width: 100%; }
  .btn { min-height: 48px; } /* touch target */
}

/* Ensure FAQ items readable on mobile */
@media (max-width: 640px) {
  .faq-item { padding: 16px 18px !important; }
  .faq-item summary { font-size: 0.95rem !important; }
  .faq-item p { font-size: 0.9rem !important; }
}

/* Container side padding on small screens */
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 16px !important; }
}

/* ═══════════════════════════════════════
   BBPRESS DARK-THEME OVERRIDES
   ═══════════════════════════════════════ */
#bbpress-forums {
  background: transparent;
  color: var(--muted);
  font-family: inherit;
}
#bbpress-forums .bbp-breadcrumb,
#bbpress-forums .bbp-breadcrumb a {
  color: var(--muted);
}
#bbpress-forums .bbp-breadcrumb a { color: #6EC1E4; text-decoration: none; }
#bbpress-forums .bbp-breadcrumb a:hover { color: #fff; }

/* Notice boxes (empty state, warnings) */
.bbp-template-notice,
#bbpress-forums .bbp-template-notice,
#bbpress-forums .bbp-template-notice.info,
#bbpress-forums div.bbp-template-notice {
  background: rgba(110,193,228,0.07) !important;
  border: 1px solid rgba(110,193,228,0.2) !important;
  color: var(--muted) !important;
  border-radius: 10px !important;
  padding: 16px 20px !important;
  margin: 14px 0 !important;
  font-size: 0.95rem;
  box-shadow: none !important;
}
#bbpress-forums .bbp-template-notice p,
.bbp-template-notice p { color: var(--muted) !important; margin: 0 !important; }

/* Hide the ugly default bbPress inline login form — users go to /login/ instead */
#bbpress-forums .bbp-login-form,
#bbpress-forums fieldset.bbp-form { display: none !important; }

/* Inject a branded sign-in CTA in its place (on forum pages where login prompt would appear) */
#bbpress-forums .bbp-template-notice + .bbp-template-notice {
  background: rgba(110,193,228,0.07) !important;
}
#bbpress-forums .bbp-template-notice + .bbp-template-notice::after {
  content: "Sign in with Google to post →";
  display: inline-block;
  margin-left: 12px;
  padding: 6px 16px;
  background: #6EC1E4;
  color: #0A192F !important;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Forum title / topic list styling */
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: var(--bg2) !important;
  border: 1px solid var(--border) !important;
  color: var(--white) !important;
  padding: 14px 18px !important;
  border-radius: 8px 8px 0 0 !important;
}
#bbpress-forums li.bbp-body {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  background: var(--card) !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid var(--border) !important;
}
#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
  background: rgba(110,193,228,0.04) !important;
}
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: var(--white) !important;
  font-weight: 600;
  text-decoration: none;
}
#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover { color: #6EC1E4 !important; }
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-content { color: var(--muted) !important; font-size: 0.9rem; }

/* Search box */
#bbp-search-form #bbp_search {
  background: rgba(0,0,0,0.3) !important;
  border: 1px solid var(--border) !important;
  color: var(--white) !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
}
#bbp-search-form #bbp_search_submit {
  background: #6EC1E4 !important;
  color: #0A192F !important;
  border: 0 !important;
  padding: 8px 16px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

/* Topic forms / reply forms (logged-in users) */
#bbpress-forums .bbp-the-content-wrapper textarea,
#bbpress-forums .bbp-reply-form input[type="text"],
#bbpress-forums .bbp-topic-form input[type="text"],
#bbpress-forums .bbp-the-content-wrapper .wp-editor-container {
  background: rgba(0,0,0,0.3) !important;
  border: 1px solid var(--border) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
}
#bbpress-forums .bbp-submit-wrapper #bbp_topic_submit,
#bbpress-forums .bbp-submit-wrapper #bbp_reply_submit {
  background: #6EC1E4 !important;
  color: #0A192F !important;
  border: 0 !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* ═══════════════════════════════════════
   TOOLS HUB GRID + CARDS
   ═══════════════════════════════════════ */
.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px) {
  .tools-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tools-hub-grid { grid-template-columns: 1fr; }
}
.tool-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tool-color, #6EC1E4);
  opacity: 0.6;
  transition: opacity .2s ease, height .2s ease;
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--tool-color, #6EC1E4);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.tool-card:hover::before { opacity: 1; height: 4px; }
.tool-card .tool-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
}
.tool-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.tool-card .tool-cta {
  color: var(--tool-color, #6EC1E4);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: auto;
}

/* Community category grid — balanced 4-up */
.community-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1100px) {
  .community-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .community-cat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   WPFORMS DARK THEME OVERRIDES
   ═══════════════════════════════════════ */
.wpforms-container { max-width: 560px; margin: 0 auto; }
.wpforms-container .wpforms-form {
  background: transparent !important;
  color: var(--muted);
}
.wpforms-container .wpforms-field-label,
.wpforms-container label.wpforms-field-sublabel,
.wpforms-container legend,
.wpforms-container .wpforms-field-container legend {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  margin-bottom: 8px !important;
}
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="url"],
.wpforms-container input[type="number"],
.wpforms-container input[type="password"],
.wpforms-container select,
.wpforms-container textarea {
  background: rgba(0,0,0,0.35) !important;
  border: 1px solid var(--border) !important;
  color: var(--white) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  width: 100% !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
.wpforms-container input[type="text"]:focus,
.wpforms-container input[type="email"]:focus,
.wpforms-container input[type="tel"]:focus,
.wpforms-container input[type="url"]:focus,
.wpforms-container input[type="number"]:focus,
.wpforms-container input[type="password"]:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
  border-color: #6EC1E4 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(110,193,228,0.15) !important;
}
.wpforms-container input::placeholder,
.wpforms-container textarea::placeholder {
  color: var(--faint) !important;
  opacity: 0.6;
}
.wpforms-container textarea { min-height: 120px !important; resize: vertical !important; }
.wpforms-container .wpforms-field-sublabel { opacity: 0.7; font-size: 0.72rem !important; }
.wpforms-container .wpforms-required-label,
.wpforms-container .wpforms-field.wpforms-field-required > label > span.wpforms-required-label { color: #EF4444 !important; }

/* Submit button */
.wpforms-container button[type="submit"],
.wpforms-container .wpforms-submit-container button {
  background: linear-gradient(135deg, #6EC1E4, #0693E3) !important;
  color: #0A192F !important;
  border: 0 !important;
  padding: 14px 36px !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: transform .15s ease, box-shadow .15s ease !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: 0 4px 16px rgba(110,193,228,0.25) !important;
}
.wpforms-container button[type="submit"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(110,193,228,0.4) !important;
}
.wpforms-container .wpforms-submit-spinner { filter: brightness(0) invert(0.15); }

/* Field row spacing */
.wpforms-container .wpforms-field {
  margin-bottom: 18px !important;
  padding: 0 !important;
}
.wpforms-container .wpforms-field-row { gap: 12px !important; display: flex !important; flex-wrap: wrap !important; }
.wpforms-container .wpforms-field-row-block { flex: 1 1 200px !important; }

/* Success + error */
.wpforms-container .wpforms-confirmation-container {
  background: rgba(34,197,94,0.1) !important;
  border: 1px solid rgba(34,197,94,0.3) !important;
  color: #22c55e !important;
  border-radius: 10px !important;
  padding: 20px !important;
}
.wpforms-container .wpforms-error,
.wpforms-container em.wpforms-error {
  color: #EF4444 !important;
  font-size: 0.82rem !important;
  margin-top: 6px !important;
  display: block !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE FIXES — appended 2026-04-19
   Fixes: broken nav hamburger, CTA overflow, hero wrap, touch targets,
   tighter spacing on small screens, performance
═══════════════════════════════════════════════════════════════ */

/* 1. Make .desktop-only actually do something on mobile
   (was missing a rule entirely — inline display:flex was not being overridden) */
@media (max-width: 820px) {
  .desktop-only { display: none !important; }
}

/* 2. Hamburger is always visible on mobile; hide on desktop */
.nav-hamburger { display: none; }
@media (max-width: 820px) {
  .nav-hamburger { display: flex !important; }
  .nav-inner { gap: 8px !important; }
}

/* 3. Nav logo sizing on very small viewports */
@media (max-width: 480px) {
  .nav-logo { font-size: 1rem !important; gap: 8px !important; }
  .nav-logo .logo-icon { width: 30px !important; height: 30px !important; }
  .nav-logo .logo-mark { width: 32px !important; height: 32px !important; }
}

/* 4. Mobile-menu (when hamburger opens) — improve touch targets, spacing */
@media (max-width: 820px) {
  .nav-links.open { padding: 90px 20px 40px !important; gap: 2px !important; }
  .nav-links.open .nav-top { font-size: 1.1rem !important; padding: 14px 8px !important; min-height: 44px; }
  .nav-links.open .nav-item { display: block; width: 100%; }
  .nav-links.open .nav-dropdown { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; padding: 0 0 0 12px; box-shadow: none; margin: 4px 0 12px; }
  .nav-links.open .nav-dropdown a { padding: 10px 4px; font-size: 0.92rem; min-height: 36px; }
  .nav-links.open .nav-dropdown .dd-sub { display: none; }
  .nav-links.open .dropdown-chevron { display: none; }

  /* Mobile menu — add the CTA buttons at the bottom */
  .nav-links.open::after {
    content: "";
    display: block;
    height: 24px;
  }
}

/* 5. Hero — reduce type size + line height on small screens */
@media (max-width: 768px) {
  :root {
    --text-hero: clamp(1.6rem, 7vw, 2.4rem) !important;
  }
  #hero { padding: 90px 0 60px !important; min-height: 85vh !important; }
  .hero-title, h1 { letter-spacing: -0.01em !important; line-height: 1.15 !important; }
}
@media (max-width: 400px) {
  :root {
    --text-hero: clamp(1.4rem, 6.5vw, 2rem) !important;
  }
}

/* 6. Hero CTAs on mobile — stack full-width with proper touch targets */
@media (max-width: 640px) {
  .hero-ctas { flex-direction: column !important; gap: 10px !important; width: 100%; }
  .hero-ctas .btn { width: 100% !important; justify-content: center !important; padding: 16px 20px !important; min-height: 52px; font-size: 0.95rem !important; }
}

/* 7. Credential strip (Associate CISSP, ISO 27001, etc.) — single column on tiny screens */
@media (max-width: 480px) {
  .cred-strip, .credentials, .trust-badges {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    font-size: 0.8rem !important;
  }
}
@media (max-width: 360px) {
  .cred-strip, .credentials, .trust-badges {
    grid-template-columns: 1fr !important;
  }
}

/* 8. General mobile section spacing — reduce padding on small screens */
@media (max-width: 640px) {
  .section, section { padding-left: 18px !important; padding-right: 18px !important; }
  .container { padding-left: 0 !important; padding-right: 0 !important; }
}

/* 9. Cards — tighter on mobile */
@media (max-width: 640px) {
  .card, .service-card, .tool-card { padding: 20px !important; }
}

/* 10. Touch-target minimums (WCAG + Google mobile-friendly) */
@media (max-width: 820px) {
  a, button, .btn, [role="button"] {
    min-height: 44px;
  }
  input, textarea, select {
    font-size: 16px !important; /* prevents iOS auto-zoom on focus */
    min-height: 44px;
  }
}

/* 11. Prevent horizontal scroll anywhere */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}
body > * {
  max-width: 100vw;
}

/* 12. WhatsApp floating button — position tweak so it doesn't overlap CTAs */
@media (max-width: 640px) {
  .whatsapp-float, #whatsapp-btn, [class*="whatsapp"][class*="float"] {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
}

/* 13. Footer columns — collapse cleanly */
@media (max-width: 900px) {
  #site-footer .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
  }
}
@media (max-width: 560px) {
  #site-footer .footer-top {
    grid-template-columns: 1fr !important;
  }
}

/* 14. Academy sidebar — stack above main on mobile (not beside) */
@media (max-width: 900px) {
  .academy-hub-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .academy-sidebar {
    position: static !important;
    max-height: none !important;
  }
}

/* 15. Tables — scroll on mobile instead of overflowing */
@media (max-width: 640px) {
  .post-body table, .wp-block-table table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

/* 16. Code blocks — smaller font on mobile */
@media (max-width: 640px) {
  pre, code { font-size: 0.78rem !important; }
  pre { padding: 14px !important; }
}

/* 17. Images — responsive + lazy-load friendly */
img {
  max-width: 100%;
  height: auto;
}

/* 18. Service cards (homepage) — single column on phones */
@media (max-width: 640px) {
  .services-grid, .tools-hub-grid, .community-cat-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* 19. DPDP Penalty Calculator — form + result stack on mobile */
@media (max-width: 900px) {
  #dpc-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #dpc-result {
    position: static !important;
  }
  .dpc-checks {
    grid-template-columns: 1fr !important;
  }
}

/* 20. Login card — wider on mobile (was max-width 460 which is tight on phones) */
@media (max-width: 520px) {
  .login-card { padding: 24px 20px !important; border-radius: 14px !important; }
}

/* 21. Page hero top padding — reduce on short mobile viewports */
@media (max-width: 640px) {
  .page-hero { padding-top: 80px !important; padding-bottom: 30px !important; }
}

/* ─── A11y: skip link + screen-reader-only utility (added 2026-04-21) ─── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 10px 16px;
    background: #6EC1E4;
    color: #08091A;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 0;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.screen-reader-text:focus,
.screen-reader-text:focus-visible {
    clip: auto;
    width: auto;
    height: auto;
    background: #6EC1E4;
    color: #08091A;
    padding: 8px 12px;
    z-index: 100000;
    outline: 2px solid #ffffff;
}
/* Focus-visible ring for keyboard navigation across the theme */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #6EC1E4;
    outline-offset: 2px;
    border-radius: 2px;
}
