/*
Theme Name: GMICT Consulting
Theme URI: https://www.gmict.com.au
Author: George Moungos
Description: Custom theme for GMICT Consulting - ICT, Cybersecurity & AI Governance Advisory. Dark instrument-panel palette with a radar-sweep hero signature.
Version: 1.0
Requires PHP: 7.4
Text Domain: gmict
*/

:root {
  --ink: #0A0F1A;
  --panel: #10182A;
  --panel-2: #151F35;
  --line: rgba(231,234,240,0.09);
  --line-strong: rgba(231,234,240,0.16);
  --text: #E7EAF0;
  --muted: #8B96AA;
  --muted-2: #5E6A81;
  --accent: #45E0B0;
  --accent-dim: rgba(69,224,176,0.12);
  --amber: #E2A64C;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,15,26,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
}

.logo-mark svg { width: 100%; height: 100%; }

.navlinks {
  display: flex;
  gap: 36px;
  font-size: 14px;
  color: var(--muted);
}

.navlinks a { transition: color 0.15s ease; }
.navlinks a:hover { color: var(--text); }
.navlinks a.current { color: var(--accent); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); }

@media (max-width: 720px) {
  .navlinks { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 96px 32px 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 78% 30%, black 0%, transparent 70%);
  opacity: 0.6;
}

.scope {
  position: absolute;
  top: 40px;
  right: 0;
  width: 460px;
  height: 460px;
  max-width: 46vw;
  max-height: 46vw;
}

.scope svg { width: 100%; height: 100%; }

.scope-sweep {
  transform-origin: 230px 230px;
  animation: sweep 3.2s ease-out 1;
}

@media (prefers-reduced-motion: reduce) {
  .scope-sweep { animation: none; opacity: 0.35; }
}

@keyframes sweep {
  0%   { transform: rotate(0deg); opacity: 0.9; }
  100% { transform: rotate(300deg); opacity: 0.15; }
}

.hero-inner {
  position: relative;
  max-width: 640px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 600;
  margin: 22px 0 20px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p.sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 13px 22px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06120E;
  font-weight: 500;
}
.btn-primary:hover { transform: translateY(-1px); background: #5CEBC0; }

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-facts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.hero-facts div { max-width: 220px; }

.hero-facts .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}

.hero-facts .lbl {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero h1 { font-size: 34px; }
  .scope { opacity: 0.25; right: -80px; }
}

/* ---------- PAGE HERO (secondary pages) ---------- */
.page-hero {
  padding: 72px 32px 56px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  margin: 16px 0 14px;
  letter-spacing: -0.01em;
}

.page-hero p {
  color: var(--muted);
  max-width: 560px;
  font-size: 16px;
}

/* ---------- SECTION SHARED ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }

.section-head {
  max-width: 560px;
  margin-bottom: 52px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  margin-top: 16px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted);
  margin-top: 14px;
  font-size: 15.5px;
}

/* ---------- SERVICES / CAPABILITY MATRIX ---------- */
.matrix {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.matrix-row {
  display: grid;
  grid-template-columns: 280px 1fr 200px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.matrix-row:last-child { border-bottom: none; }
.matrix-row:hover { background: var(--panel); }

.matrix-row.head {
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.matrix-row.head:hover { background: var(--panel-2); }

.matrix-cell {
  padding: 22px 24px;
  display: flex;
  align-items: center;
}

.matrix-row.head .matrix-cell { padding: 14px 24px; }

.matrix-cell.service {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.matrix-cell.service .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: 0.06em;
}

.matrix-cell.desc {
  color: var(--muted);
  font-size: 14.5px;
}

.matrix-cell.who {
  font-size: 13.5px;
  color: var(--muted-2);
}

@media (max-width: 820px) {
  .matrix-row { grid-template-columns: 1fr; }
  .matrix-row.head { display: none; }
  .matrix-cell { padding: 16px 20px; }
  .matrix-cell.desc, .matrix-cell.who { padding-top: 0; }
}

/* ---------- HOME SERVICES TEASER ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.teaser-card {
  background: var(--ink);
  padding: 26px 22px;
  transition: background 0.15s ease;
}
.teaser-card:hover { background: var(--panel); }

.teaser-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 10px;
}

.teaser-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.teaser-card p {
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 820px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

.section-cta {
  margin-top: 32px;
}

/* ---------- APPROACH ---------- */
.approach-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.approach-step {
  background: var(--ink);
  padding: 32px 28px;
}

.approach-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: block;
  margin-bottom: 18px;
}

.approach-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.approach-step p {
  color: var(--muted);
  font-size: 14.5px;
}

@media (max-width: 820px) {
  .approach-list { grid-template-columns: 1fr; }
}

/* ---------- ABOUT ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 15.5px;
}

.about-copy strong { color: var(--text); font-weight: 500; }

.credentials {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.cred-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cred-row:last-child { border-bottom: none; }

.cred-row .k { color: var(--muted-2); font-family: var(--font-mono); font-size: 12.5px; }
.cred-row .v { color: var(--text); text-align: right; }

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- CONTACT ---------- */
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-panel > div:first-child p {
  color: var(--muted);
  font-size: 15px;
  max-width: 400px;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; justify-content: center; }

.contact-item .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  display: block;
  margin-bottom: 4px;
}

.contact-item .v {
  font-size: 16px;
  font-family: var(--font-display);
  font-weight: 500;
}

.contact-item a.v:hover { color: var(--accent); }

@media (max-width: 820px) {
  .contact-panel { grid-template-columns: 1fr; padding: 32px; }
}

/* ---------- CLOSING CTA BANNER ---------- */
.cta-banner {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}

.cta-banner p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
  max-width: 380px;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 32px;
  text-align: center;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  max-width: 1120px;
}
@media (max-width: 600px) {
  footer .wrap { flex-direction: column; gap: 10px; text-align: center; }
}
