/*
Theme Name: Actron Security
Theme URI: https://actronsecurity.com/
Author: Reza Evol
Author URI: https://rezaevol.com
Description: A cutting-edge, high-tech dark theme for Actron Security Solutions Ltd. Bold condensed typography, electric-blue accents pulled from the Actron mark, and angular "security-ops" visuals built for a commercial & residential security integrator.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: actron-security
Tags: dark, security, corporate, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. RESET
========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

img, picture, svg { display: block; max-width: 100%; }

ul, ol { list-style: none; margin: 0; padding: 0; }

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

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

/* =========================================================
   2. VARIABLES - palette pulled from the Actron logo
   (near-black wordmark, electric-blue compass mark, blue glow)
========================================================= */
:root {
  /* core surfaces */
  --ink:        #060a10;
  --ink-2:      #0c1119;
  --ink-3:      #121a26;
  --ink-4:      #182233;
  --line:       rgba(101, 175, 235, .14);
  --line-bright: rgba(101, 175, 235, .32);

  /* brand blue, extracted from the ACTRON compass mark */
  --blue:        #2f8fe5;
  --blue-bright: #5ec2ff;
  --blue-dim:    #17436e;
  --blue-glow:   rgba(94, 194, 255, .35);

  /* emergency / alert accent, from the 24/7 badge */
  --red:        #e8384a;
  --red-bright: #ff5c6c;

  /* text */
  --white:  #f3f7fb;
  --fog:    #b7c4d3;
  --dim:    #7c8ba0;

  /* type */
  --font-head: 'Rajdhani', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* misc */
  --radius: 6px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* =========================================================
   3. BASE
========================================================= */
body {
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 0%, rgba(47, 143, 229, .10), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(47, 143, 229, .06), transparent 45%);
  background-attachment: fixed;
}

/* faint technical grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .35;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.6rem, 5vw + 1rem, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3vw + 1rem, 3rem); }
h3 { font-size: 1.4rem; letter-spacing: .04em; }

p { max-width: 62ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 1;
}

.section--tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2 { margin-top: 14px; }

.section-head p { margin-top: 18px; font-size: 1.05rem; }

.section--alt {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* diagonal divider used between hero and content */
.diagonal-cut {
  position: relative;
  height: 90px;
  margin-top: -1px;
}
.diagonal-cut svg { width: 100%; height: 100%; display: block; }

/* =========================================================
   4. BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: #04101c;
  box-shadow: 0 0 0 0 var(--blue-glow);
}
.btn--primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px var(--blue-glow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-bright);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  transform: translateY(-2px);
}

.btn--alert {
  background: var(--red);
  color: var(--white);
}
.btn--alert:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px rgba(232, 56, 74, .45);
}

.btn--sm { padding: 11px 20px; font-size: .8rem; }

/* =========================================================
   5. HEADER / NAV
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(6, 10, 16, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .06em;
  color: var(--white);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.brand--image { padding: 4px 0; }
.brand__logo {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 10px rgba(255,255,255,.12));
}
.site-header.is-scrolled .brand__logo { height: 32px; }
.footer__brand .brand__logo { height: 34px; }

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .58rem;
  letter-spacing: .3em;
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  margin-top: 2px;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.primary-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fog);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-glow);
  transition: width .25s var(--ease);
}

.primary-nav a:hover,
.primary-nav .current-menu-item a { color: var(--white); }
.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-head);
}
.header-phone span {
  font-size: .62rem;
  letter-spacing: .25em;
  color: var(--dim);
  text-transform: uppercase;
}
.header-phone a {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: .02em;
}
.header-phone a:hover { color: var(--blue-bright); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-bright);
  align-items: center;
  justify-content: center;
  color: var(--white);
}

/* mobile nav */
@media (max-width: 960px) {
  .primary-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84vw);
    height: 100vh;
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 99;
  }
  .primary-nav.is-open { transform: translateX(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 26px; }
  .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   6. HERO
========================================================= */
.hero {
  position: relative;
  padding: 150px 0 130px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { margin-top: 18px; }
.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
  text-shadow: 0 0 30px var(--blue-glow);
}

.hero p.lede {
  margin-top: 26px;
  font-size: 1.15rem;
  color: var(--fog);
  max-width: 52ch;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 56px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--white);
  font-weight: 700;
}
.hero__stats .stat span {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

.hero__panel {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--line-bright);
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(94,194,255,.06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(94,194,255,.06) 0 1px, transparent 1px 26px);
}

.hero__panel .badge-30 {
  position: relative;
  z-index: 2;
}

.hero__panel .corner {
  position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--blue-bright);
}
.hero__panel .corner--tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.hero__panel .corner--br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

/* badge: 30 years / since 1984 */
.badge-30 {
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 2px solid var(--blue-bright);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  box-shadow: 0 0 50px -6px var(--blue-glow), inset 0 0 30px rgba(94,194,255,.08);
  animation: pulse-ring 4s ease-in-out infinite;
}
.badge-30 b { font-family: var(--font-head); font-size: 2.6rem; color: var(--white); line-height: 1; }
.badge-30 span { font-family: var(--font-head); font-size: .72rem; letter-spacing: .2em; color: var(--blue-bright); text-transform: uppercase; margin-top: 6px; }
.badge-30 small { font-size: .64rem; color: var(--dim); letter-spacing: .1em; margin-top: 10px; }

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 50px -6px var(--blue-glow), inset 0 0 30px rgba(94,194,255,.08); }
  50% { box-shadow: 0 0 70px 0px var(--blue-glow), inset 0 0 40px rgba(94,194,255,.14); }
}

@media (max-width: 900px) {
  .hero { padding: 120px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { max-width: 340px; margin-inline: auto; }
}

/* =========================================================
   7. CARDS
========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line);
  padding: 38px 32px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  opacity: 0; transition: opacity .3s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-bright);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-bright);
  color: var(--blue-bright);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 12px; }
.card p { font-size: .95rem; margin: 0; }
.card .num {
  position: absolute;
  top: 30px; right: 30px;
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--dim);
}

/* =========================================================
   8. CTA BAND (24/7 emergency)
========================================================= */
.cta-band {
  position: relative;
  padding: 56px 0;
  background: linear-gradient(120deg, var(--ink-4), var(--ink-2) 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band__text { display: flex; align-items: center; gap: 20px; }
.cta-band__dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(232,56,74,.6);
  animation: blip 1.6s infinite;
  flex-shrink: 0;
}
@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(232,56,74,.55); }
  70% { box-shadow: 0 0 0 14px rgba(232,56,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,56,74,0); }
}
.cta-band h3 { margin: 0; font-size: 1.6rem; }
.cta-band p { margin: 4px 0 0; font-size: .95rem; }

/* =========================================================
   9. FOOTER
========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 76px 0 30px;
  background: var(--ink);
  position: relative; z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand p { font-size: .9rem; margin-top: 16px; }
.footer h4 {
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--blue-bright);
  margin-bottom: 18px;
}
.footer ul li { margin-bottom: 10px; }
.footer a { font-size: .9rem; color: var(--fog); transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--dim); margin: 0; }
.footer-bottom p a { color: var(--fog); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom p a:hover { color: var(--blue-bright); }
.footer-credit { display: block; margin-top: 4px; font-size: .78rem; color: var(--dim); }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a {
  width: 34px; height: 34px; border: 1px solid var(--line-bright);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom .socials a svg { width: 15px; height: 15px; }

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

/* =========================================================
   10. PAGE HEADER (interior pages)
========================================================= */
.page-hero {
  padding: 150px 0 70px;
  position: relative;
}
.page-hero h1 { margin-top: 16px; }
.page-hero p.lede { margin-top: 20px; font-size: 1.05rem; max-width: 60ch; }
.breadcrumb {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 22px;
}
.breadcrumb a { color: var(--blue-bright); }

/* =========================================================
   11. FORMS
========================================================= */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-head);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 14px 16px;
  border-radius: 2px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(94,194,255,.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field.full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-msg {
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line-bright);
  font-size: .9rem;
}
.form-msg--success { border-color: var(--blue-bright); color: var(--blue-bright); }
.form-msg--error { border-color: var(--red-bright); color: var(--red-bright); }

/* =========================================================
   12. CONTACT INFO TILES
========================================================= */
.info-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
@media (max-width: 900px) { .info-tiles { grid-template-columns: 1fr; } }
.info-tile {
  border: 1px solid var(--line);
  padding: 26px;
  display: flex; gap: 16px; align-items: flex-start;
}
.info-tile .card__icon { margin-bottom: 0; flex-shrink: 0; }
.info-tile h4 { font-size: .78rem; letter-spacing: .16em; color: var(--dim); margin-bottom: 6px; }
.info-tile p, .info-tile a { color: var(--white); font-size: 1rem; margin: 0; }
.info-tile a:hover { color: var(--blue-bright); }

/* =========================================================
   13. SUPPORT DOWNLOAD BUTTONS
========================================================= */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
@media (max-width: 700px) { .download-grid { grid-template-columns: 1fr; } }
.download-card {
  border: 1px solid var(--line);
  padding: 32px;
  text-align: center;
}
.download-card svg { width: 40px; height: 40px; margin: 0 auto 18px; color: var(--blue-bright); }
.download-card h3 { margin-bottom: 8px; }
.download-card p { margin: 0 auto 22px; font-size: .88rem; }

.steps { counter-reset: step; margin-top: 36px; }
.steps li {
  counter-increment: step;
  display: flex; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blue-bright);
  border: 1px solid var(--line-bright);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   14. SCROLL REVEAL + MISC
========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

::selection { background: var(--blue); color: #04101c; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-4); border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-dim); }

/* WP core alignment / defaults kept for editor content */
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text { font-size: .82rem; color: var(--dim); margin-top: 8px; }
.screen-reader-text { position: absolute !important; left: -9999px; }

article.entry { padding: 90px 0 120px; }
article.entry .entry-content h2 { margin-top: 46px; margin-bottom: 16px; }
article.entry .entry-content h3 { margin-top: 34px; margin-bottom: 12px; }
article.entry .entry-content p { margin-bottom: 18px; }
article.entry .entry-content a { color: var(--blue-bright); text-decoration: underline; }
article.entry .entry-content ul, article.entry .entry-content ol { margin: 0 0 18px 22px; list-style: disc; }
article.entry .entry-content ol { list-style: decimal; }

.error-404 { padding: 160px 0 140px; text-align: center; }
.error-404 .code {
  font-family: var(--font-head);
  font-size: clamp(5rem, 14vw, 10rem);
  color: var(--blue);
  text-shadow: 0 0 60px var(--blue-glow);
  line-height: 1;
}
