/*
Theme Name:        IOPositive
Theme URI:         https://iopositive.com
Author:            IOPositive
Author URI:        https://iopositive.com
Description:       Modern IT & Cloud Services theme for IOPositive — Infrastructure, M365, AI, Cybersecurity.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.5
Requires PHP:      8.0
License:           Proprietary
Text Domain:       iopositive
*/

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

:root {
  --navy:   #0A0F1E;
  --navy2:  #111827;
  --cobalt: #2563EB;
  --cobalt2:#1D4ED8;
  --cyan:   #06B6D4;
  --white:  #F8FAFC;
  --slate:  #94A3B8;
  --slate2: #64748B;
  --card:   #131929;
  --border: rgba(148,163,184,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ──────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 5vw;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-logo {
  display: flex; align-items: center;
  flex-shrink: 0;
}
.logo-fallback {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cobalt), var(--cyan));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800; color: white;
}
.site-logo .custom-logo-link,
.site-logo .custom-logo-link figure,
.site-logo a { display: flex !important; align-items: center !important; }
.site-logo .custom-logo-link img,
.site-logo .custom-logo,
.site-logo img { height: 40px !important; width: auto !important; max-width: none !important; max-height: 40px !important; display: block !important; }
.main-navigation ul { display: flex; gap: 2rem; list-style: none; }
.main-navigation a {
  color: var(--slate); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.main-navigation a:hover { color: var(--white); }
.nav-cta {
  background: var(--cobalt) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--cobalt2) !important; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 5vw 4rem;
  position: relative; overflow: hidden;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--cyan);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.25);
  padding: 0.35rem 0.9rem; border-radius: 99px; margin-bottom: 1.8rem;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{ opacity:1; transform:scale(1); }
  50%{ opacity:0.4; transform:scale(0.8); }
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 1.1rem; color: var(--slate); max-width: 480px;
  margin-bottom: 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cobalt); color: var(--white);
  padding: 0.85rem 1.8rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--cobalt2); transform: translateY(-1px); color: var(--white); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--white);
  padding: 0.85rem 1.8rem; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem; text-decoration: none;
  border: 1px solid var(--border); transition: border-color 0.2s, transform 0.15s;
}
.btn-ghost:hover { border-color: var(--slate2); transform: translateY(-1px); color: var(--white); }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.stat-val {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.8rem; font-weight: 800;
}
.stat-label { font-size: 0.8rem; color: var(--slate); margin-top: 0.15rem; }
#network-canvas {
  position: absolute; top: 0; right: -5%;
  width: 60%; height: 100%; z-index: 1; opacity: 0.55;
}

/* ─── TRUST BAR ─────────────────────────────────────────── */
.trust-bar {
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}
.trust-label { font-size: 0.75rem; color: var(--slate2); white-space: nowrap; }
.trust-logos { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.trust-logo { font-weight: 600; font-size: 0.85rem; color: var(--slate2); }

/* ─── SECTION COMMONS ───────────────────────────────────── */
.section { padding: 6rem 5vw; }
.section--alt { background: var(--navy2); }
.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 0.9rem;
}
.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.section-intro {
  color: var(--slate); font-size: 1.05rem; max-width: 560px;
  line-height: 1.75; margin-bottom: 3.5rem;
}

/* ─── SERVICES GRID ─────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px; background: var(--border);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
}
.service-card {
  background: var(--card); padding: 2.5rem;
  transition: background 0.25s; position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cobalt), var(--cyan));
  opacity: 0; transition: opacity 0.25s;
}
.service-card:hover { background: #161d2f; }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.4rem;
}
.icon-infra  { background: rgba(37,99,235,0.15); }
.icon-o365   { background: rgba(6,182,212,0.12); }
.icon-ai     { background: rgba(139,92,246,0.15); }
.icon-cyber  { background: rgba(16,185,129,0.12); }
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem;
  font-weight: 700; margin-bottom: 0.75rem;
}
.service-desc { color: var(--slate); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.65rem;
  border-radius: 4px; background: rgba(255,255,255,0.05);
  color: var(--slate); border: 1px solid var(--border);
}
.service-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600; color: var(--cobalt);
  text-decoration: none; margin-top: 1.2rem; transition: gap 0.2s;
}
.service-link:hover { gap: 0.6rem; }

/* ─── WHY US ─────────────────────────────────────────────── */
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.why-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; aspect-ratio: 1.1;
  display: flex; align-items: center; justify-content: center;
}
.why-visual canvas { width: 100%; height: 100%; }
.pillars { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.pillar {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.4rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s;
}
.pillar:hover { border-color: rgba(37,99,235,0.35); }
.pillar-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.7rem; font-weight: 800;
  color: var(--cobalt); background: rgba(37,99,235,0.12);
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 0.1rem;
}
.pillar-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.pillar-text { font-size: 0.85rem; color: var(--slate); line-height: 1.6; }

/* ─── PROCESS ────────────────────────────────────────────── */
.process-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0; position: relative;
}
.process-steps::before {
  content: ''; position: absolute; top: 28px; left: 0; right: 0;
  height: 1px; background: var(--border);
}
.step { padding: 0 2rem 2rem 0; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.step:first-child .step-dot { border-color: var(--cobalt); background: rgba(37,99,235,0.15); }
.step-title { font-family:'Space Grotesk',sans-serif; font-weight:700; margin-bottom:0.4rem; }
.step-text { font-size:0.85rem; color:var(--slate); line-height:1.65; }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;
}
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 2rem;
}
.stars { color: #F59E0B; font-size: 0.75rem; margin-bottom: 0.75rem; }
.quote-mark {
  font-size: 2.5rem; line-height: 1; color: var(--cobalt);
  margin-bottom: 1rem; font-family:'Space Grotesk',sans-serif;
}
.quote-text { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.5rem; }
.quote-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.author-name { font-weight: 600; font-size: 0.875rem; }
.author-role { font-size: 0.78rem; color: var(--slate); }

/* ─── CTA ────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #0f1a3a 0%, var(--navy2) 100%);
  text-align: center; padding: 7rem 5vw;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { margin-bottom: 1rem; position: relative; }
.cta-section p {
  color: var(--slate); font-size: 1.05rem;
  max-width: 500px; margin: 0 auto 2.5rem; position: relative;
}
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 5vw;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-brand { font-family:'Space Grotesk',sans-serif; font-weight:800; font-size:1.1rem; }
.footer-nav ul { display:flex; gap:1.5rem; list-style:none; }
.footer-nav a { font-size:0.82rem; color:var(--slate); text-decoration:none; transition:color 0.2s; }
.footer-nav a:hover { color:var(--white); }
.footer-copy { font-size:0.78rem; color:var(--slate2); }

/* ─── WORDPRESS DEFAULTS ─────────────────────────────────── */
.wp-block-image img { max-width: 100%; height: auto; }
.alignnone, .alignleft, .alignright, .aligncenter { max-width: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--cobalt); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 640px) {
  .main-navigation { display: none; }
  #network-canvas { width: 100%; opacity: 0.2; }
  .hero-stats { gap: 1.5rem; }
  .process-steps::before { display: none; }
}
