/*
Theme Name: Structured Security Systems
Theme URI: https://www.structuredss.com
Author: Structured Security Systems
Author URI: https://www.structuredss.com
Description: Custom WordPress theme for Structured Security Systems - security, fire & CCTV in Pickering, ON.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: structuredss
Tags: business, security, responsive
*/

/* ============================================================
   Structured Security Systems - Modern Redesign
   Mobile-first, responsive, accessible
   ============================================================ */

:root {
  --color-primary: #0a0a0a;
  --color-primary-2: #1f1f23;
  --color-silver: #d0d1d3;
  --color-accent: #c0392b;
  --color-accent-2: #e67e22;
  --color-blue: #1e6fb8;
  --color-bg: #ffffff;
  --color-bg-alt: #f1f2f5;
  --color-bg-dark: #0a0a0a;
  --color-text: #1a1a1a;
  --color-text-muted: #5a5f6a;
  --color-border: #d9dde3;
  --color-success: #1e8e3e;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(11,31,58,0.06);
  --shadow-md: 0 8px 24px rgba(11,31,58,0.10);
  --shadow-lg: 0 16px 48px rgba(11,31,58,0.16);

  --container: 1200px;
  --header-h: 150px;

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Poppins", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--color-accent); color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 12px; top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--color-primary); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand { perspective: 900px; }
.brand-logo {
  height: 120px; width: auto; display: block;
  max-width: none; object-fit: contain;
  transform: rotateY(-12deg) rotateX(6deg);
  transform-style: preserve-3d;
  filter:
    drop-shadow(2px 3px 2px rgba(0,0,0,0.35))
    drop-shadow(6px 10px 14px rgba(0,0,0,0.30))
    drop-shadow(0 0 1px rgba(0,0,0,0.2));
  transition: transform .35s ease, filter .35s ease;
}
.brand:hover .brand-logo {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  filter:
    drop-shadow(0 2px 4px rgba(0,0,0,0.25))
    drop-shadow(0 10px 20px rgba(0,0,0,0.35));
}
@media (max-width: 768px) { .brand-logo { height: 160px; } }
@media (max-width: 480px) { .brand-logo { height: 128px; } }
.brand-text { font-family: var(--font-display); font-size: 16px; line-height: 1.1; }
.brand-sub { display: block; font-size: 11px; font-weight: 500; color: var(--color-text-muted); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--color-text); font-size: 14px; font-weight: 500;
}
.site-nav a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-primary); }
.site-nav a.active { color: var(--color-accent); }
.site-nav .nav-call { display: none; }

.header-cta { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: all .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: #fff; box-shadow: 0 4px 12px rgba(192,57,43,.3); }
.btn-primary:hover { background: #a93226; color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: var(--radius-lg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #1f1f23 55%, #0d2a4a 100%);
  color: #fff; padding: 90px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(192,57,43,.28), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(30,111,184,.35), transparent 50%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1; margin: 0 0 18px; font-weight: 800;
}
.hero h1 span { color: #d0d1d3; }
.hero p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 36px;
}
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md); padding: 16px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 26px; }
.stat span { font-size: 13px; color: rgba(255,255,255,.75); }

.hero-visual {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-visual .shield {
  width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,.6), transparent 70%);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .shield svg { width: 55%; height: 55%; color: #fff; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }

/* ---------- Trust bar ---------- */
.trust {
  background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border);
  padding: 28px 0;
}
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.trust-label { font-size: 13px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; }
.badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 8px 14px; font-weight: 600; font-size: 13px; color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-bg-dark); color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px;
}
.section h2 {
  font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 40px);
  margin: 0 0 14px; color: var(--color-primary); line-height: 1.2;
}
.section-dark h2 { color: #fff; }
.section p.lead { font-size: 18px; color: var(--color-text-muted); margin: 0; }
.section-dark p.lead { color: rgba(255,255,255,.8); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
  display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--font-display); font-size: 19px; margin: 0 0 8px; color: var(--color-primary); }
.card p { color: var(--color-text-muted); font-size: 15px; margin: 0 0 12px; }
.card ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: 14px; }
.card ul li { margin-bottom: 4px; }

/* ---------- Monitoring packages ---------- */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.package {
  background: #fff; border: 2px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 28px 22px; position: relative;
}
.package.featured { border-color: var(--color-accent); box-shadow: var(--shadow-md); }
.package .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--color-accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.package h3 { font-family: var(--font-display); font-size: 18px; margin: 0 0 6px; color: var(--color-primary); }
.package .price { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--color-accent); margin: 8px 0 14px; }
.package .price small { font-size: 14px; color: var(--color-text-muted); font-weight: 500; }
.package ul { list-style: none; padding: 0; margin: 0 0 18px; }
.package ul li { padding: 6px 0; border-bottom: 1px dashed var(--color-border); font-size: 14px; color: var(--color-text-muted); }
.package ul li:last-child { border-bottom: none; }
.package ul li::before { content: "✓ "; color: var(--color-success); font-weight: 700; }

/* ---------- CCTV products ---------- */
.product {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: start;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.product-img {
  width: 120px; height: 120px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-bg-alt), #dde6f3);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary);
}
.product-img svg { width: 48px; height: 48px; opacity: .6; }
.product h4 { margin: 0 0 6px; font-family: var(--font-display); color: var(--color-primary); font-size: 17px; }
.product .model { font-size: 13px; color: var(--color-accent); font-weight: 700; margin-bottom: 8px; }
.product ul { margin: 0; padding-left: 18px; color: var(--color-text-muted); font-size: 14px; }
.product ul li { margin-bottom: 3px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery-item {
  aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-blue));
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.85);
  font-weight: 600; font-size: 14px; position: relative;
}
.gallery-item:nth-child(2) { background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2)); }
.gallery-item:nth-child(3) { background: linear-gradient(135deg, #2c3e50, #4ca1af); }
.gallery-item:nth-child(4) { background: linear-gradient(135deg, #134e5e, #71b280); }
.gallery-item:nth-child(5) { background: linear-gradient(135deg, #4b1248, #f0c27b); }
.gallery-item:nth-child(6) { background: linear-gradient(135deg, #141e30, #243b55); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { background: var(--color-primary); color: #fff; border-radius: var(--radius-xl); padding: 36px; }
.contact-info h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 20px; }
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-row svg { width: 22px; height: 22px; flex-shrink: 0; color: #ffb3aa; margin-top: 2px; }
.contact-row strong { display: block; font-size: 13px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.contact-row a, .contact-row span { color: #fff; font-size: 15px; }
.contact-row a:hover { color: #ffb3aa; }
.contact-person { background: rgba(255,255,255,.08); border-radius: var(--radius-md); padding: 16px; margin-top: 12px; }
.contact-person h4 { margin: 0 0 4px; font-size: 15px; }
.contact-person p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); }

.map {
  margin-top: 20px; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 16/9; background: var(--color-bg-alt);
}
.map iframe { width: 100%; height: 100%; border: 0; }

.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-md); }
.form-card h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; color: var(--color-primary); }
.form-card p { color: var(--color-text-muted); margin: 0 0 22px; font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--color-primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-family: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 3px rgba(30,111,184,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12px; color: var(--color-text-muted); margin-top: 8px; }
.form-success { display: none; background: #eaf7ee; border: 1px solid #b7e2c2; color: var(--color-success);
  padding: 12px 16px; border-radius: var(--radius-md); margin-top: 12px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark); color: rgba(255,255,255,.8); padding: 60px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 15px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.75); font-size: 14px; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-brand { font-family: var(--font-display); font-size: 18px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-brand small { display: block; font-size: 12px; color: rgba(255,255,255,.6); font-weight: 400; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .packages { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 180px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--color-border);
    padding: 12px 20px; display: none; box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: block; }
  .site-nav .nav-call { display: list-item; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .header-cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-img { width: 100%; height: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  :root { --header-h: 150px; }
  .container { padding: 0 16px; }
  .hero h1 { font-size: 30px; }
}