/*
Theme Name:  WolfDen Networks
Theme URI:   https://wolfdennetworks.com
Author:      WolfDen Networks
Description: Custom theme for WolfDen Networks — dark, sleek, responsive.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: wolfden
*/

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:        #0a0b0f;
  --bg-card:   #111520;
  --bg-card2:  #161b27;
  --blue-hi:   #29d4ff;
  --blue-mid:  #1a90e0;
  --blue-lo:   #0047c8;
  --text:      #f0f2f5;
  --muted:     #7a8599;
  --border:    rgba(41,212,255,0.12);
  --border-hi: rgba(41,212,255,0.35);
  --font-head: 'Russo One', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--blue-hi); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── UTILITIES ─────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 100px 0; }

.section-label {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-hi);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--blue-hi);
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); line-height: 1.1; }
h2.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.25rem; }

.section-desc { font-size: 1.0625rem; color: var(--muted); max-width: 520px; line-height: 1.75; }

.gradient-text {
  background: linear-gradient(100deg, var(--blue-hi) 0%, var(--blue-mid) 60%, var(--blue-lo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 2px;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(100deg, var(--blue-hi), var(--blue-lo));
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(41,212,255,0.3); }
.btn-ghost { background: transparent; color: var(--blue-hi); border: 1px solid var(--border-hi); }
.btn-ghost:hover { background: rgba(41,212,255,0.07); transform: translateY(-1px); }

.divider-line { height: 1px; background: linear-gradient(90deg, transparent, var(--blue-hi), transparent); opacity: 0.3; }

/* ── NAV ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: rgba(10,11,15,0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-text .wordmark { font-family: var(--font-head); font-size: 17px; color: var(--text); }
.nav-logo-text .sub { font-family: var(--font-cond); font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

#primary-nav { display: flex; align-items: center; gap: 36px; list-style: none; }
#primary-nav a {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
#primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--blue-hi);
  transition: width 0.25s ease;
}
#primary-nav a:hover { color: var(--text); }
#primary-nav a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: all 0.3s; }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(10,11,15,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  z-index: 99;
  padding: 24px 2rem 32px;
  flex-direction: column;
  gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-cond);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--blue-hi); }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(0,71,200,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(41,212,255,0.07) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding: 80px 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-hi);
  background: rgba(41,212,255,0.07);
  border: 1px solid var(--border-hi);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue-hi); animation: pulse 2s ease-in-out infinite; }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-desc { font-size: 1.125rem; color: var(--muted); max-width: 500px; line-height: 1.8; margin-bottom: 2.5rem; animation: fadeUp 0.8s 0.3s ease both; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 0.8s 0.45s ease both; }

.hero-stats { display: flex; gap: 48px; margin-top: 64px; animation: fadeUp 0.8s 0.6s ease both; flex-wrap: wrap; }
.hero-stat { border-left: 1px solid var(--border-hi); padding-left: 18px; }
.hero-stat .num { font-family: var(--font-head); font-size: 2rem; color: var(--text); display: block; }
.hero-stat .num span { color: var(--blue-hi); }
.hero-stat .label { font-family: var(--font-cond); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; animation: fadeIn 1s 1s ease both; }
.hero-scroll span { font-family: var(--font-cond); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--blue-hi), transparent); animation: scrollPulse 2s ease-in-out infinite; }

/* ── SERVICES ──────────────────────────────────────────── */
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-card { background: var(--bg-card); padding: 40px 36px; position: relative; overflow: hidden; transition: background 0.25s; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue-hi), var(--blue-lo)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.service-card:hover { background: var(--bg-card2); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 48px; height: 48px; margin-bottom: 24px; color: var(--blue-hi); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-head); font-size: 1.125rem; color: var(--text); margin-bottom: 12px; }
.service-card p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; }
.service-num { position: absolute; top: 36px; right: 36px; font-family: var(--font-head); font-size: 3rem; color: rgba(41,212,255,0.05); line-height: 1; user-select: none; }

/* ── ABOUT ─────────────────────────────────────────────── */
.about { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; aspect-ratio: 4/3; background: var(--bg-card2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.about-img-wrap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(41,212,255,0.07) 0%, transparent 60%), repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(41,212,255,0.04) 40px), repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(41,212,255,0.04) 40px); }
.about-wolf-svg { width: 50%; opacity: 0.85; position: relative; z-index: 1; }
.about-corner { position: absolute; width: 24px; height: 24px; border-color: var(--blue-hi); border-style: solid; }
.about-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.about-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.about-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.about-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.about-badge { position: absolute; bottom: -20px; right: -20px; background: var(--bg); border: 1px solid var(--border-hi); padding: 16px 22px; }
.about-badge .num { font-family: var(--font-head); font-size: 2rem; color: var(--blue-hi); display: block; line-height: 1; }
.about-badge .txt { font-family: var(--font-cond); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 4px; }
.about-features { list-style: none; margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.about-features li { display: flex; align-items: flex-start; gap: 14px; font-size: 0.9375rem; color: var(--muted); }
.about-features li .check { flex-shrink: 0; width: 20px; height: 20px; background: rgba(41,212,255,0.1); border: 1px solid var(--border-hi); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.about-features li .check svg { width: 10px; height: 10px; color: var(--blue-hi); }

/* ── PARTNERS ──────────────────────────────────────────── */
.partners-header { text-align: center; margin-bottom: 56px; }
.partners-header .section-label { justify-content: center; }
.partners-header .section-label::before { display: none; }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.partner-cell { background: var(--bg-card); padding: 32px 24px; display: flex; align-items: center; justify-content: center; transition: background 0.22s; min-height: 100px; }
.partner-cell:hover { background: var(--bg-card2); }
.partner-cell img { max-height: 40px; max-width: 120px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.45; transition: opacity 0.22s; }
.partner-cell:hover img { opacity: 0.8; }
.partner-cell span { font-family: var(--font-cond); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); transition: color 0.22s; text-align: center; }
.partner-cell:hover span { color: var(--text); }

/* ── CONTACT ───────────────────────────────────────────── */
.contact { background: var(--bg-card); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon { width: 40px; height: 40px; background: rgba(41,212,255,0.07); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue-hi); }
.contact-item-icon svg { width: 18px; height: 18px; }
.contact-item-text .label { font-family: var(--font-cond); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-item-text .val { font-size: 0.9375rem; color: var(--text); margin-top: 2px; display: block; }

/* Contact form (CF7 / WPForms compatible) */
.contact-form-wrap, .wpcf7-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group, .wpcf7-form-control-wrap { display: flex; flex-direction: column; gap: 6px; }
.form-label, .wpcf7 label { font-family: var(--font-cond); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 16px;
  border-radius: 0;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--blue-hi); }
textarea { resize: vertical; min-height: 130px; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8599' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select option { background: var(--bg-card); }
input[type="submit"], .wpcf7 input[type="submit"] { background: linear-gradient(100deg, var(--blue-hi), var(--blue-lo)); color: #fff; font-family: var(--font-cond); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 13px 28px; border: none; cursor: pointer; border-radius: 2px; transition: filter 0.22s, transform 0.22s; width: 100%; }
input[type="submit"]:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ── FOOTER ────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 60px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 52px; }
.footer-brand p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; margin-top: 16px; max-width: 260px; }
.footer-col h4 { font-family: var(--font-cond); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--blue-hi); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-family: var(--font-cond); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.footer-bottom span { color: var(--blue-hi); }

/* ── INNER PAGES (about, contact, etc.) ────────────────── */
.page-hero { padding: 140px 0 80px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-content { padding: 80px 0; }
.page-content p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; max-width: 720px; }
.page-content h2 { font-size: 1.75rem; margin: 2rem 0 1rem; }
.page-content h3 { font-size: 1.25rem; color: var(--blue-hi); margin: 1.5rem 0 0.75rem; }
.page-content ul { list-style: none; margin-bottom: 1.25rem; }
.page-content ul li { color: var(--muted); padding: 6px 0; padding-left: 20px; position: relative; }
.page-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--blue-hi); }

/* ── ANIMATIONS ────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .about-badge { bottom: -10px; right: -10px; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  #primary-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
