/* DC Home Locator — Futuristic HUD / Command Center FX Layer */

/* ── Ambient layers (referenced in header.php) ── */
.sci-hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z' fill='none' stroke='%2300f0ff' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 10%, transparent 75%);
}

.sci-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.sci-glow-1 {
  width: 500px;
  height: 500px;
  top: -10%;
  left: -5%;
  background: rgba(0, 240, 255, 0.07);
  animation: sci-pulse 8s ease-in-out infinite;
}

.sci-glow-2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  right: -5%;
  background: rgba(200, 80, 255, 0.06);
  animation: sci-pulse 10s ease-in-out infinite reverse;
}

.sci-circuit {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    linear-gradient(90deg, transparent 49%, rgba(0, 240, 255, 0.8) 50%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 240, 255, 0.8) 50%, transparent 51%);
  background-size: 120px 120px;
}

@keyframes sci-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ── Animated grid enhancement ── */
.sci-grid-bg {
  background-size: 48px 48px;
  animation: sci-grid-drift 60s linear infinite;
}

@keyframes sci-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

.sci-scanline {
  opacity: 0.04;
  animation: sci-scan 12s linear infinite;
}

@keyframes sci-scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ── Header HUD chrome ── */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 240, 255, 0.5) 0%, transparent 8%),
    linear-gradient(270deg, rgba(200, 80, 255, 0.4) 0%, transparent 8%);
  opacity: 0.35;
}

.site-header::after {
  content: "// SYS.ONLINE";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: rgba(0, 240, 255, 0.35);
  pointer-events: none;
}

.site-header .header-inner {
  position: relative;
}

.logo-mark {
  border: 1px solid rgba(0, 240, 255, 0.6);
  box-shadow:
    0 0 12px rgba(0, 240, 255, 0.4),
    inset 0 0 8px rgba(0, 240, 255, 0.15);
}

.logo-text {
  font-family: var(--font-hud);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.main-nav a {
  position: relative;
  padding: 0.35rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 6px var(--cyan);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.btn-nav {
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
  box-shadow:
    0 0 15px rgba(0, 240, 255, 0.2),
    inset 0 0 12px rgba(0, 240, 255, 0.05);
  animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 12px rgba(0, 240, 255, 0.05); }
  50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.35), inset 0 0 16px rgba(0, 240, 255, 0.1); }
}

/* ── HUD labels & 3D outlined typography ── */
.sci-label {
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  text-shadow: var(--letter-3d);
  -webkit-text-stroke: 0.6px #000;
  paint-order: stroke fill;
}

h1, h2, h3, h4,
.logo-text,
.section-header h2,
.hero h1,
.article-card h2,
.card-service h3,
.card-linked h3,
.guide-item h3,
.page-hero-inner h1,
.article-header h1 {
  font-weight: 900;
  letter-spacing: 0.06em;
  -webkit-text-stroke: 1.4px #000;
  paint-order: stroke fill;
  text-shadow: var(--letter-3d);
}

p, li, .hero-lead, .article-excerpt, .article-body p, .card-service p, .card-linked p {
  -webkit-text-stroke: 0.4px #000;
  paint-order: stroke fill;
  text-shadow:
    1px 1px 0 #000,
    0 0 8px rgba(0, 255, 80, 0.25);
}

.main-nav a,
.btn,
.card-link,
.article-meta {
  -webkit-text-stroke: 0.7px #000;
  paint-order: stroke fill;
  text-shadow:
    1px 1px 0 #000,
    2px 2px 0 #03140a,
    0 0 10px rgba(0, 255, 90, 0.4);
}

/* ── Matrix digital photo overlay ── */
.article-card-img-wrap,
.card-with-img,
.hero-bg-img,
.page-hero-img,
.area-panel-banner,
.article-hero-img,
.tool-grid-img .tool-card {
  position: relative;
}

.article-card-img-wrap::after,
.card-with-img::after,
.hero-bg-img::after,
.page-hero-img::after,
.area-panel-banner::after,
.article-hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 12, 4, 0.28) 2px 3px),
    linear-gradient(180deg, rgba(0, 255, 80, 0.1), transparent 35%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: multiply;
}

.sci-site img {
  filter: saturate(1.35) contrast(1.12) brightness(0.92);
}

.card-with-img img,
.tool-card-photo,
.article-card-img-wrap img {
  filter: saturate(1.35) contrast(1.15) brightness(0.9);
}

.card-with-img:hover img,
.tool-grid-img .tool-card:hover img,
.article-card:hover img {
  filter: saturate(1.45) contrast(1.2) brightness(1);
}

/* ── Angular neon card borders ── */
.card,
.article-card,
.area-item,
.guide-item,
.guide-item-link,
.tool-grid-img .tool-card {
  border: 1px solid rgba(0, 240, 255, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0, 240, 255, 0.04),
    0 0 0 1px rgba(3, 5, 8, 0.8),
    var(--shadow-card);
  clip-path: polygon(
    0 10px, 10px 0,
    calc(100% - 10px) 0, 100% 10px,
    100% calc(100% - 10px), calc(100% - 10px) 100%,
    10px 100%, 0 calc(100% - 10px)
  );
}

.card::after,
.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-top: 2px solid rgba(200, 80, 255, 0.5);
  border-right: 2px solid rgba(200, 80, 255, 0.5);
  pointer-events: none;
}

.card:hover,
.article-card:hover,
.area-item:hover,
.guide-item-link:hover {
  border-color: rgba(0, 240, 255, 0.55);
  box-shadow:
    0 0 25px rgba(0, 240, 255, 0.15),
    inset 0 0 20px rgba(0, 240, 255, 0.03),
    var(--shadow-card);
}

/* ── Buttons ── */
.btn {
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  letter-spacing: 0.1em;
}

.btn-primary {
  border-color: rgba(0, 240, 255, 0.7);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.2),
    inset 0 0 15px rgba(0, 240, 255, 0.08);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.btn-primary:hover {
  text-shadow: none;
}

.btn-secondary {
  border-color: rgba(77, 159, 255, 0.4);
}

.btn-ghost {
  border-color: rgba(200, 80, 255, 0.55);
  box-shadow: 0 0 15px rgba(200, 80, 255, 0.12);
}

/* ── Hero command-center integration ── */
.hero-image {
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(3, 5, 8, 1) 0%, transparent 12%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(0, 240, 255, 0.03) 80px,
      rgba(0, 240, 255, 0.03) 81px
    );
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(3, 5, 8, 0.55) 0%, rgba(6, 11, 20, 0.75) 45%, rgba(3, 5, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(3, 5, 8, 0.85) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 240, 255, 0.08), transparent 60%);
}

.hero h1 {
  font-family: var(--font-hud);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-stats {
  border-top-color: rgba(0, 240, 255, 0.3);
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.03));
  padding: 2rem 1.5rem 0;
  margin: 0 -1.5rem;
  border-image: linear-gradient(90deg, var(--cyan), var(--magenta), var(--cyan)) 1;
}

.stat strong {
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* ── Section dividers ── */
section {
  border-top: 1px solid rgba(0, 240, 255, 0.06);
}

.services-preview,
.audience,
.resources,
.articles-preview,
.guides-list-section,
.tools {
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.02) 0%, transparent 30%),
    var(--bg-deep, #060b14);
}

.tools {
  background:
    linear-gradient(180deg, rgba(200, 80, 255, 0.03) 0%, transparent 40%),
    var(--bg-panel, #0a101c);
}

/* ── Area tabs & filters ── */
.area-tab,
.filter-pill {
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.area-tab.active {
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.area-panel-banner,
.page-hero-img,
.page-hero-img img {
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.4);
}

/* ── Footer console ── */
.site-footer {
  border-top: 1px solid rgba(0, 240, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.04) 0%, transparent 20%),
    var(--bg-deep, #060b14);
  box-shadow: inset 0 1px 0 rgba(200, 80, 255, 0.1);
}

.footer-links h4 {
  font-family: var(--font-mono);
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.status-dot {
  box-shadow: 0 0 8px var(--green);
  animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── CTA band ── */
.cta-band {
  border-top: 1px solid rgba(0, 240, 255, 0.25);
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.06) 0%, rgba(200, 80, 255, 0.06) 100%),
    var(--bg-panel);
  box-shadow: inset 0 0 60px rgba(0, 240, 255, 0.04);
}

/* ── Page heroes (inner pages) ── */
.page-hero {
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(0, 240, 255, 0.06), transparent 50%),
    var(--bg-panel);
  border-bottom-color: rgba(0, 240, 255, 0.25);
}

/* ── Forms (contact, homevalue) ── */
input, textarea, select {
  background: rgba(3, 5, 8, 0.8) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  color: var(--text-bright) !important;
  font-family: var(--font-mono) !important;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(0, 240, 255, 0.6) !important;
  box-shadow:
    0 0 15px rgba(0, 240, 255, 0.15),
    inset 0 0 12px rgba(0, 0, 0, 0.4) !important;
  outline: none;
}

/* ── Card images neon frame ── */
.card-with-img .card-img,
.card-with-img picture,
.card-with-img img,
.tool-card-photo,
.article-card-img-wrap {
  position: relative;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sci-grid-bg,
  .sci-scanline,
  .sci-glow-1,
  .sci-glow-2,
  .btn-nav,
  .status-dot {
    animation: none;
  }
}
