/*
Theme Name: Kyro IT
Theme URI: https://kyroit.co.za
Author: Kyro IT
Description: One-page theme for Kyro IT (formerly Integrated Office Intelligence / IOIN) - managed IT services, cloud, cybersecurity and rapid on-site support across Gauteng, South Africa.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kyroit
*/
/* ===== Kyro IT — brand palette drawn from the logo ===== */
:root {
  --navy: #16306b;
  --navy-dark: #0e2150;
  --navy-deep: #091736;
  --blue: #1565c0;
  --cyan: #21a9d8;
  --cyan-light: #e6f4fa;
  --ink: #1c2433;
  --slate: #51607a;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --grad: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);
  --radius: 14px;
  --shadow: 0 8px 30px rgba(22, 48, 107, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

h1, h2, h3 { line-height: 1.2; color: var(--navy); }

/* ===== Scroll-reveal (only hides content when JS is running) ===== */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 23, 54, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(14, 33, 80, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.site-header.scrolled .brand-name { color: var(--navy); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.main-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-header.scrolled .main-nav a { color: var(--slate); }

.main-nav a:hover { color: var(--cyan); }

.site-header.scrolled .main-nav a:hover { color: var(--blue); }

.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover { opacity: 0.92; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: background 0.3s ease;
}

.site-header.scrolled .nav-toggle span { background: var(--navy); }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin-top: -61px; /* sit behind the translucent sticky header */
  padding-top: 61px;
  background:
    linear-gradient(100deg, rgba(9, 23, 54, 0.94) 0%, rgba(14, 33, 80, 0.82) 45%, rgba(14, 33, 80, 0.45) 100%),
    url('images/hero-bg.jpg') center / cover no-repeat,
    var(--navy-deep);
  overflow: hidden;
}

#netCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9fdcf2;
  background: rgba(33, 169, 216, 0.14);
  border: 1px solid rgba(33, 169, 216, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero h1 .line {
  display: inline-block;
  animation: riseIn 0.8s ease both;
}

.hero h1 .line-2 {
  background: linear-gradient(90deg, #4cc9f0, #21a9d8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation-delay: 0.15s;
}

.hero-kicker, .hero-sub, .hero-actions, .hero-stats, .hero-footnote {
  animation: riseIn 0.8s ease both;
}

.hero-sub { animation-delay: 0.25s; }
.hero-actions { animation-delay: 0.35s; }
.hero-stats { animation-delay: 0.45s; }
.hero-footnote { animation-delay: 0.5s; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 .line, .hero-kicker, .hero-sub, .hero-actions, .hero-stats, .hero-footnote {
    animation: none;
  }
}

.hero-sub {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 22px rgba(33, 169, 216, 0.45);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  margin-top: 1.6rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  list-style: none;
  margin-top: 2.4rem;
}

.hero-stats li { display: flex; flex-direction: column; }

.hero-stats strong {
  font-size: 1.9rem;
  font-weight: 800;
  color: #4cc9f0;
  font-variant-numeric: tabular-nums;
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.hero-footnote {
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.hero-visual { display: flex; justify-content: center; }

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-width: 300px;
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card { animation: none; }
}

.hero-card img { border-radius: 12px; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }

.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head {
  max-width: 46rem;
  margin-bottom: 2.8rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.eyebrow-light { color: #bfe7f5; }

.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 0.9rem;
  color: var(--slate);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.about-text p { color: var(--slate); margin-bottom: 1.1rem; font-size: 1.02rem; }

.about-photo {
  margin-top: 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-photo:hover img { transform: scale(1.04); }

.about-cards { display: grid; gap: 1.2rem; }

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow);
}

.info-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }

.info-card p { color: var(--slate); font-size: 0.95rem; }

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
    opacity 0.7s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(33, 169, 216, 0.45);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  transition: transform 0.25s ease;
}

.feature:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

.feature-icon svg { width: 22px; height: 22px; }

.feature h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }

.feature p { color: var(--slate); font-size: 0.93rem; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-top-color 0.25s ease,
    opacity 0.7s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-top-color: var(--cyan);
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.service-card ul { list-style: none; }

.service-card li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--slate);
  font-size: 0.92rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ===== Audit band ===== */
.audit-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--blue), var(--cyan), var(--blue), var(--navy-dark));
  background-size: 300% 300%;
  animation: gradShift 14s ease infinite;
  color: #fff;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .audit-band { animation: none; }
}

.audit-band h2 { color: #fff; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }

.audit-band p { color: rgba(255, 255, 255, 0.88); max-width: 44rem; }

.audit-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.audit-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.audit-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease;
}

.contact-card:hover { transform: translateY(-6px); }

.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--cyan-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.contact-card:hover .contact-icon {
  background: var(--grad);
  color: #fff;
  transform: scale(1.08);
}

.contact-icon svg { width: 24px; height: 24px; }

.contact-card h3 { font-size: 1.1rem; }

.contact-role {
  color: var(--slate);
  font-size: 0.88rem;
  margin: 0.3rem 0 0.9rem;
}

.contact-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue);
  text-decoration: none;
}

.contact-link:hover { text-decoration: underline; }

.contact-link-static {
  font-weight: 600;
  color: var(--navy);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: #c6d3ea;
  padding: 3rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  height: 54px;
  width: auto;
  border-radius: 10px;
}

.footer-brand strong { color: #fff; font-size: 1.15rem; }

.footer-brand p { font-size: 0.88rem; opacity: 0.8; }

.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a, .footer-contact a {
  color: #c6d3ea;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}

.footer-links a:hover, .footer-contact a:hover { color: #4cc9f0; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.2rem 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; padding: 4rem 0 3.5rem; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .feature-grid, .services-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 4%;
    gap: 1rem;
    box-shadow: var(--shadow);
  }

  .main-nav a { color: var(--slate) !important; }

  .main-nav.open { display: flex; }

  .nav-cta { text-align: center; color: #fff !important; }

  .hero-stats { gap: 1.6rem; }
}
