/*
Theme Name:   Spentek Kadence Child
Theme URI:    https://spentek.ca
Description:  Spentek IT Services child theme for Kadence
Author:       Spencer Ridley / Spentek
Author URI:   https://spentek.ca
Template:     kadence
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  spentek-kadence-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --sp-navy:     #0A0F1E;
  --sp-steel:    #1E3A5F;
  --sp-cyan:     #00C2FF;
  --sp-cyan-dim: rgba(0, 194, 255, 0.12);
  --sp-slate:    #E8EDF5;
  --sp-white:    #F9FAFB;
  --sp-muted:    #8A9BB5;
  --sp-dark:     #060A14;
  --sp-font-display: 'Space Grotesk', sans-serif;
  --sp-font-body:    'Inter', sans-serif;
}

/* ============================================================
   GLOBAL RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sp-font-body);
  background: var(--sp-navy);
  color: var(--sp-white);
  -webkit-font-smoothing: antialiased;
}

/* Google Fonts loaded via functions.php */

/* ============================================================
   KADENCE OVERRIDES — HEADER
   ============================================================ */
.site-header,
.kadence-sticky-header .site-header {
  background: rgba(10, 15, 30, 0.88) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 194, 255, 0.08);
}

.site-branding .site-title a,
.site-branding .site-title {
  font-family: var(--sp-font-display) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  color: var(--sp-white) !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Cyan on the "tek" part — add a <span class="accent"> in the logo */
.site-branding .site-title a .accent { color: var(--sp-cyan); }

.primary-navigation a,
.header-navigation .nav-2 a {
  font-family: var(--sp-font-display) !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--sp-muted) !important;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.primary-navigation a:hover,
.header-navigation .nav-2 a:hover {
  color: var(--sp-white) !important;
}

/* Header CTA button */
.header-button .wp-block-button__link,
.kadence-header-btn a {
  font-family: var(--sp-font-display) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.4rem !important;
  background: var(--sp-cyan) !important;
  color: var(--sp-navy) !important;
  border: none !important;
  border-radius: 4px !important;
  transition: opacity 0.2s, transform 0.15s !important;
}

.header-button .wp-block-button__link:hover,
.kadence-header-btn a:hover {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
}

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.sp-btn-primary,
.wp-block-button.is-style-fill .wp-block-button__link {
  font-family: var(--sp-font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 2rem !important;
  background: var(--sp-cyan) !important;
  color: var(--sp-navy) !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s !important;
}

.sp-btn-primary:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  opacity: 0.88 !important;
  transform: translateY(-2px) !important;
}

.sp-btn-ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
  font-family: var(--sp-font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  padding: 0.85rem 2rem !important;
  background: transparent !important;
  color: var(--sp-white) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 4px !important;
  transition: border-color 0.2s, color 0.2s !important;
}

.sp-btn-ghost:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--sp-cyan) !important;
  color: var(--sp-cyan) !important;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.sp-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
  background: var(--sp-navy);
}

/* Dot grid */
.sp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,194,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow */
.sp-hero::after {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 60vw; height: 70vh;
  background: radial-gradient(ellipse at top left, rgba(0,194,255,0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.sp-hero__inner {
  position: relative; z-index: 1;
  max-width: 780px;
}

.sp-hero__eyebrow {
  font-family: var(--sp-font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sp-cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: sp-fadeUp 0.5s 0.2s forwards;
}

.sp-hero__headline {
  font-family: var(--sp-font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--sp-white);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: sp-fadeUp 0.6s 0.35s forwards;
}

.sp-hero__headline .accent { color: var(--sp-cyan); }

.sp-cursor {
  display: inline-block;
  width: 3px; height: 0.9em;
  background: var(--sp-cyan);
  margin-left: 4px;
  vertical-align: middle;
  animation: sp-blink 0.9s step-end infinite;
}

@keyframes sp-blink { 50% { opacity: 0; } }

.sp-hero__sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--sp-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: sp-fadeUp 0.6s 0.5s forwards;
}

.sp-hero__actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: sp-fadeUp 0.6s 0.65s forwards;
}

.sp-hero__stats {
  display: flex; gap: 3rem; flex-wrap: wrap;
  margin-top: 4rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  opacity: 0;
  animation: sp-fadeUp 0.6s 0.8s forwards;
}

.sp-stat__value {
  font-family: var(--sp-font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--sp-white);
}
.sp-stat__value span { color: var(--sp-cyan); }
.sp-stat__label {
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--sp-muted); text-transform: uppercase;
  margin-top: 0.2rem;
}

@keyframes sp-fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
.sp-section-label {
  font-family: var(--sp-font-display);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sp-cyan);
  display: block; margin-bottom: 0.5rem;
}

.sp-section-label--dark { color: #0077BB; }

.sp-section-title {
  font-family: var(--sp-font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0.6rem 0 1rem;
}

.sp-section-title--dark  { color: var(--sp-navy); }
.sp-section-title--light { color: var(--sp-white); }

.sp-section-sub {
  font-size: 1rem; line-height: 1.7;
  max-width: 520px; margin-bottom: 3.5rem;
}

.sp-section-sub--dark  { color: #4A5568; }
.sp-section-sub--light { color: var(--sp-muted); }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.sp-services {
  background: var(--sp-white);
  padding: 6rem 5%;
}

.sp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.sp-service-card {
  background: var(--sp-navy);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(0,194,255,0.1);
  transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}

.sp-service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--sp-cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}

.sp-service-card:hover {
  border-color: rgba(0,194,255,0.35);
  transform: translateY(-3px);
}

.sp-service-card:hover::before { transform: scaleX(1); }

.sp-service-card__icon {
  width: 44px; height: 44px;
  background: var(--sp-cyan-dim);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}

.sp-service-card__icon svg {
  width: 22px; height: 22px;
  stroke: var(--sp-cyan); fill: none; stroke-width: 1.8;
}

.sp-service-card__title {
  font-family: var(--sp-font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--sp-white); margin-bottom: 0.6rem;
}

.sp-service-card__desc {
  font-size: 0.875rem; line-height: 1.65;
  color: var(--sp-muted);
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */
.sp-portfolio {
  background: var(--sp-navy);
  padding: 6rem 5%;
}

.sp-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sp-portfolio-card {
  border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(0,194,255,0.1);
  background: rgba(30,58,95,0.3);
  transition: border-color 0.2s, transform 0.2s;
}

.sp-portfolio-card:hover {
  border-color: rgba(0,194,255,0.35);
  transform: translateY(-3px);
}

.sp-portfolio-card__thumb {
  height: 180px;
  background: linear-gradient(135deg, #0A1628 0%, #1E3A5F 100%);
  display: flex; align-items: center; justify-content: center;
}

.sp-portfolio-card__thumb-label {
  font-family: var(--sp-font-display);
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sp-cyan); opacity: 0.7;
}

.sp-portfolio-card__body { padding: 1.5rem; }

.sp-portfolio-card__tag {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sp-cyan); margin-bottom: 0.5rem;
}

.sp-portfolio-card__name {
  font-family: var(--sp-font-display);
  font-size: 1rem; font-weight: 600;
  color: var(--sp-white); margin-bottom: 0.4rem;
}

.sp-portfolio-card__desc {
  font-size: 0.85rem; line-height: 1.6; color: var(--sp-muted);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.sp-about {
  background: var(--sp-steel);
  padding: 6rem 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}

.sp-about__body {
  font-size: 0.95rem; line-height: 1.8;
  color: rgba(232,237,245,0.8); margin-bottom: 1.75rem;
}

.sp-about__skills {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}

.sp-skill-tag {
  font-size: 0.78rem; font-weight: 500;
  padding: 0.35rem 0.85rem;
  background: rgba(0,194,255,0.1);
  border: 1px solid rgba(0,194,255,0.25);
  border-radius: 3px; color: var(--sp-cyan); letter-spacing: 0.03em;
}

/* Terminal widget */
.sp-terminal {
  width: 100%; max-width: 420px;
  background: #070C18; border-radius: 10px;
  border: 1px solid rgba(0,194,255,0.15); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.sp-terminal__bar {
  background: #111827; padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sp-terminal__dot { width: 10px; height: 10px; border-radius: 50%; }
.sp-terminal__dot--r { background: #FF5F56; }
.sp-terminal__dot--y { background: #FFBD2E; }
.sp-terminal__dot--g { background: #27C93F; }

.sp-terminal__title {
  font-size: 0.72rem; color: var(--sp-muted);
  margin: 0 auto; letter-spacing: 0.05em;
}

.sp-terminal__body {
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem; line-height: 1.9;
}

.t-prompt { color: var(--sp-cyan); }
.t-cmd    { color: var(--sp-white); }
.t-out    { color: #5A7A9A; }
.t-ok     { color: #27C93F; }
.t-warn   { color: #FFBD2E; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.sp-cta {
  background: var(--sp-navy);
  padding: 6rem 5%; text-align: center;
  position: relative; overflow: hidden;
}

.sp-cta::before {
  content: '';
  position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
  width: 70vw; height: 60vh;
  background: radial-gradient(ellipse, rgba(0,194,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.sp-cta__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer,
.sp-footer {
  background: var(--sp-dark) !important;
  padding: 3rem 5% !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
}

.site-footer .footer-wrap { max-width: 100%; }

.sp-footer__inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}

.sp-footer__logo {
  font-family: var(--sp-font-display);
  font-size: 1.2rem; font-weight: 700; color: var(--sp-white);
}

.sp-footer__logo .accent { color: var(--sp-cyan); }

.sp-footer__links {
  display: flex; gap: 2rem; list-style: none; padding: 0; margin: 0;
}

.sp-footer__links a {
  font-size: 0.85rem; color: var(--sp-muted);
  text-decoration: none; transition: color 0.2s;
}

.sp-footer__links a:hover { color: var(--sp-white); }

.sp-footer__copy { font-size: 0.8rem; color: #3A4A60; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sp-about { grid-template-columns: 1fr; gap: 2.5rem; }
  .sp-hero__stats { gap: 2rem; }
  .sp-terminal { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-hero__eyebrow,
  .sp-hero__headline,
  .sp-hero__sub,
  .sp-hero__actions,
  .sp-hero__stats {
    opacity: 1 !important;
    animation: none !important;
  }
  .sp-cursor { animation: none !important; }
}
