/*
Theme Name: Ezatech
Theme URI: https://www.ezatech.com.au
Author: Ezatech
Author URI: https://www.ezatech.com.au
Description: Custom dark security/tech theme for Ezatech — security-minded IT for Sydney businesses.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ezatech
*/

/* Google Fonts is loaded via <link> in header.php (see ezatech_scripts()
   in functions.php), not @import here - @import forces the browser to
   fetch this file, parse it, then fetch the font CSS, then fetch the font
   files, all serially, instead of in parallel with everything else. */

:root{
  --bg: #0A0E13;
  --surface: #10161D;
  --surface-2: #161E27;
  --line: #232D38;
  --amber: #E8A33D;
  --amber-dim: #8A662A;
  --teal: #4FD1C5;
  --text: #E7EDF2;
  --text-muted: #8593A1;
  --text-faint: #55626E;
  --display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before{
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
section{ position: relative; z-index: 1; }

/* ---------- NAV ---------- */
header.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,19,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.wrap{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.logo{
  font-family: var(--display);
  font-weight: 700;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0.02em;
  display:flex; align-items:center; gap:11px;
}
.logo a, .logo-text{ line-height: 1; }
.logo-mark{
  width:11px; height:11px; border-radius:50%; flex-shrink:0;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
}
.logo span{ color: var(--amber); }
.nav-links{
  display:flex; align-items:center; gap:36px;
  font-size: 14px; color: var(--text-muted);
  list-style: none;
}
.nav-links li{ display:inline; }
.nav-links a{ transition: color 0.15s ease; }
.nav-links a:hover{ color: var(--text); }
.nav-cta{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--bg);
  background: var(--amber);
  padding: 10px 18px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,163,61,0.25); }
.nav-right{ display:flex; align-items:center; gap:20px; }
.nav-toggle-checkbox{ display:none; }
.nav-toggle-btn{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:32px; height:32px; cursor:pointer; flex-shrink:0;
}
.nav-toggle-btn span{ width:100%; height:2px; background:var(--text); display:block; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle-checkbox:checked ~ .nav-right .nav-toggle-btn span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle-checkbox:checked ~ .nav-right .nav-toggle-btn span:nth-child(2){ opacity:0; }
.nav-toggle-checkbox:checked ~ .nav-right .nav-toggle-btn span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero{ padding: 88px 0 96px; position:relative; overflow:hidden; }
body.home .hero{
  background-image:
    linear-gradient(90deg, rgba(10,14,19,0.93) 0%, rgba(10,14,19,0.72) 45%, rgba(10,14,19,0.5) 100%),
    url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Drifts via transform (compositor-only) rather than animating
   background-position, which would repaint the full fixed viewport
   layer on every frame. Inset extends one grid tile past the edges
   so the translate never reveals a gap. */
body.home::before{ inset:-64px; animation: gridDrift 40s linear infinite; will-change: transform; }
@keyframes gridDrift{
  from{ transform: translate(0, 0); }
  to{ transform: translate(64px, 64px); }
}
body.home .hero::after{
  content:'';
  position:absolute; top:0; bottom:0; left:0;
  width:35%;
  background: linear-gradient(100deg, transparent, rgba(79,209,197,0.07), transparent);
  transform: translateX(-100%);
  animation: heroSweep 9s ease-in-out infinite;
  pointer-events:none;
  will-change: transform;
}
@keyframes heroSweep{
  0%{ transform: translateX(-100%); }
  55%{ transform: translateX(400%); }
  100%{ transform: translateX(400%); }
}
.hero-grid{
  display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center;
}
.eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display:flex; align-items:center; gap:10px;
  margin-bottom: 22px;
}
.eyebrow::before{
  content:''; width:24px; height:1px; background: var(--amber-dim);
}
h1{
  font-family: var(--display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
h1 em{
  font-style: normal;
  color: var(--amber);
}
.hero p.lede{
  font-size: 17px;
  color: var(--text-muted);
  max-width: 470px;
  margin-bottom: 34px;
}
.hero-ctas{ display:flex; gap:14px; align-items:center; }
.btn-primary{
  font-family: var(--mono);
  font-size: 13.5px;
  background: var(--amber);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: 3px;
  font-weight: 500;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-block;
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,163,61,0.25); }
.btn-ghost{
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color 0.15s ease, color 0.15s ease;
  display: inline-block;
}
.btn-ghost:hover{ border-color: var(--teal); color: var(--teal); }

/* ---------- SCAN PANEL ---------- */
.scan-panel{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.scan-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.scan-dots{ display:flex; gap:6px; }
.scan-dots span{ width:9px; height:9px; border-radius:50%; background: var(--line); }
.scan-title{
  font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.04em;
}
.scan-body{
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 20px 18px 22px;
  color: var(--text-muted);
  position: relative;
  min-height: 280px;
}
.scan-body .line{ display:flex; gap:10px; margin-bottom: 9px; opacity:0; animation: appear 0.4s ease forwards; }
.scan-body .l1{ animation-delay: 0.2s; }
.scan-body .l2{ animation-delay: 0.5s; }
.scan-body .l3{ animation-delay: 0.8s; }
.scan-body .l4{ animation-delay: 1.1s; }
.scan-body .l5{ animation-delay: 1.4s; }
.scan-body .l6{ animation-delay: 1.7s; }
.scan-body .l7{ animation-delay: 2.0s; }
.scan-body .l8{ animation-delay: 2.3s; }
@keyframes appear{ to{ opacity:1; } }
.tag{ flex-shrink:0; width: 64px; }
.ok{ color: var(--teal); }
.warn{ color: var(--amber); }
.muted{ color: var(--text-faint); }
.scan-sweep{
  position:absolute; left:0; right:0; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(232,163,61,0.08), transparent);
  animation: sweep 3.2s linear infinite;
  pointer-events: none;
}
@keyframes sweep{
  from{ top: -40px; } to{ top: 100%; }
}
.scan-footer{
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--mono); font-size: 11px; color: var(--text-faint);
}
.scan-footer .status{ display:flex; align-items:center; gap:7px; color: var(--teal); }
.status-dot{ width:6px; height:6px; border-radius:50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); position:relative; }
.status-dot::after{
  content:''; position:absolute; inset:-4px; border-radius:50%;
  border:1px solid var(--teal);
  animation: radarPing 2.4s ease-out infinite;
}
@keyframes radarPing{
  0%{ transform:scale(1); opacity:0.6; }
  100%{ transform:scale(2.8); opacity:0; }
}
.cursor{
  display:inline-block; width:7px; height:13px; background:var(--teal);
  margin-left:4px; vertical-align:-2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

@media (prefers-reduced-motion: reduce){
  .scan-sweep{ animation: none; }
  .scan-body .line{ opacity:1; animation:none; }
  body.home::before{ animation: none; }
  body.home .hero::after{ animation: none; display:none; }
  .status-dot::after{ animation: none; display:none; }
  .cursor{ animation: none; }
}

/* ---------- FACTS BAR ---------- */
.facts{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid{
  display:grid; grid-template-columns: repeat(3,1fr);
}
.fact{
  padding: 30px 32px;
  border-right: 1px solid var(--line);
}
.fact:last-child{ border-right:none; }
.fact .num{ font-family: var(--display); font-size: 28px; font-weight:700; color: var(--amber); margin-bottom:4px; }
.fact .label{ font-size: 13.5px; color: var(--text-muted); }

/* ---------- SECTION HEADS ---------- */
.section{ padding: 96px 0; }
.section-head{ max-width: 560px; margin-bottom: 52px; }
.section-head .eyebrow{ margin-bottom: 14px; }
h2{
  font-family: var(--display); font-weight:700; font-size: 32px; letter-spacing:-0.01em; margin-bottom: 14px;
}
.section-head p{ color: var(--text-muted); font-size: 15.5px; }

/* ---------- SERVICES ---------- */
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow:hidden;
}
.services-grid.four{ grid-template-columns: repeat(4, 1fr); }
.service-card{
  background: var(--surface);
  padding: 32px 28px;
  transition: background 0.2s ease;
}
.service-card.wide{ grid-column: span 2; }
.service-card:hover{ background: var(--surface-2); }
.service-icon{
  width:38px; height:38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 20px;
  color: var(--teal);
}
.service-card h3{
  font-family: var(--display); font-size: 18px; font-weight: 600; margin-bottom: 10px;
}
.service-card p{ color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.service-card .link{
  font-family: var(--mono); font-size: 12.5px; color: var(--amber);
  display:inline-flex; align-items:center; gap:6px;
}

/* ---------- PROCESS ---------- */
.process{ background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-grid{
  display:grid; grid-template-columns: repeat(4,1fr);
}
.step{
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  position:relative;
}
.step:last-child{ border-right:none; }
.step .idx{
  font-family: var(--mono); font-size: 12px; color: var(--amber-dim); margin-bottom: 18px; letter-spacing:0.06em;
}
.step h3{ font-family: var(--display); font-size: 16.5px; font-weight:600; margin-bottom:10px; }
.step p{ font-size: 13.5px; color: var(--text-muted); }

/* ---------- TRUST ---------- */
.trust-grid{
  display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center;
}
.trust-list{ margin-top: 26px; display:flex; flex-direction:column; gap: 18px; }
.trust-item{ display:flex; gap:14px; align-items:flex-start; }
.trust-item .mark{
  font-family: var(--mono); color: var(--teal); font-size: 13px; margin-top: 2px;
}
.trust-item p{ font-size: 14.5px; color: var(--text-muted); }
.trust-item strong{ color: var(--text); font-weight: 600; }
.trust-panel{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}
.trust-quote{
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 20px;
}
.trust-attr{ font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }

/* ---------- CTA BANNER ---------- */
.cta-banner{
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 56px 48px;
  display:flex; align-items:center; justify-content:space-between; gap: 32px;
}
.cta-banner h2{ margin-bottom: 8px; }
.cta-banner p{ color: var(--text-muted); font-size: 15px; }
.cta-banner .btn-primary{ white-space:nowrap; }

/* ---------- FOOTER ---------- */
footer.site-footer{ border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p{ color: var(--text-faint); font-size: 13.5px; margin-top:14px; max-width: 260px; }
.footer-col h4{
  font-family: var(--mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col a{
  display:block; font-size: 14px; color: var(--text-muted); margin-bottom: 12px; transition: color 0.15s ease;
}
.footer-col a:hover{ color: var(--amber); }
.footer-bottom{
  border-top: 1px solid var(--line); padding-top: 24px;
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
}

/* ---------- Basic WP content defaults (single/page/blog fallback) ---------- */
.entry-content{ padding: 60px 0; max-width: 760px; margin: 0 auto; }
.entry-content h1, .entry-content h2, .entry-content h3{ font-family: var(--display); }
.entry-content p{ color: var(--text-muted); margin-bottom: 18px; }

@media (max-width: 860px){
  .nav-links{ display:none; }
  .nav-toggle-btn{ display:flex; }
  .nav-toggle-checkbox:checked ~ .nav-links{
    display:flex; flex-direction:column; align-items:stretch; gap:0;
    position:absolute; top:100%; left:0; right:0;
    background: var(--bg);
    border-bottom:1px solid var(--line);
    padding: 4px 24px 12px;
  }
  .nav-links a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .nav-links li:last-child a{ border-bottom:none; }
  .hero-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 38px; }
  .facts-grid, .services-grid, .services-grid.four, .process-grid{ grid-template-columns: 1fr; }
  .fact, .step{ border-right:none; border-bottom: 1px solid var(--line); }
  .trust-grid{ grid-template-columns: 1fr; gap: 36px; }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px){
  .wrap{ padding: 0 20px; }
  .hero{ padding: 56px 0 64px; }
  h1{ font-size: 30px; }
  .hero p.lede{ font-size: 15.5px; }
  .section{ padding: 64px 0; }
  .section-head{ margin-bottom: 36px; }
  h2{ font-size: 26px; }
  .service-card{ padding: 24px 20px; }
  .cta-banner{ padding: 32px 24px; }
  .trust-panel{ padding: 24px; }
  .trust-quote{ font-size: 17px; }
  .fact{ padding: 22px 20px; }
  .step{ padding: 28px 20px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction:column; gap:8px; align-items:flex-start; }
  .hero-ctas{ flex-wrap:wrap; }
  .nav-right{ gap:12px; }
  .nav-cta{ font-size:11.5px; padding:8px 12px; }
  .logo{ font-size:19px; }
}
