/*
Theme Name: CCTV Secure Pro
Theme URI: https://example.com/cctv-secure-pro
Author: Your Company
Author URI: https://example.com
Description: Premium WordPress theme for CCTV Camera & Security Solutions businesses. Fully responsive, WooCommerce & Elementor compatible.
Version: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cctv-secure-pro
Tags: business, portfolio, blog, custom-logo, custom-menu, featured-images, translation-ready, woocommerce
*/

:root {
  --csp-navy: #0a1628;
  --csp-navy-light: #132640;
  --csp-accent: #00d4ff;
  --csp-accent-hover: #00b3e0;
  --csp-text: #1a2332;
  --csp-muted: #64748b;
  --csp-bg: #ffffff;
  --csp-bg-alt: #f5f8fc;
  --csp-border: #e2e8f0;
  --csp-radius: 14px;
  --csp-radius-lg: 22px;
  --csp-shadow: 0 4px 24px rgba(10, 22, 40, 0.08);
  --csp-shadow-hover: 0 12px 40px rgba(10, 22, 40, 0.15);
  --csp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --csp-font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--csp-font);
  color: var(--csp-text);
  line-height: 1.65;
  background: var(--csp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--csp-accent); text-decoration: none; transition: var(--csp-transition); }
a:hover { color: var(--csp-accent-hover); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--alt { background: var(--csp-bg-alt); }
.section--dark { background: var(--csp-navy); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 50px;
  font-weight: 600; font-size: 15px; cursor: pointer;
  border: 2px solid transparent; transition: var(--csp-transition);
  text-align: center; justify-content: center; white-space: nowrap;
}
.btn--primary { background: var(--csp-accent); color: var(--csp-navy); }
.btn--primary:hover { background: var(--csp-accent-hover); color: var(--csp-navy); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,212,255,0.35); }
.btn--outline { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }
.btn--outline:hover { background: #fff; color: var(--csp-navy); }
.btn--dark { background: var(--csp-navy); color: #fff; }
.btn--dark:hover { background: var(--csp-navy-light); color: #fff; transform: translateY(-2px); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1da851; color: #fff; }
.btn--block { display: flex; width: 100%; }

/* Section headers */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(0,212,255,0.12); color: var(--csp-accent);
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin-bottom: 16px; font-weight: 800; }
.section--dark .section-head h2 { color: #fff; }
.section-head p { color: var(--csp-muted); font-size: 17px; }
.section--dark .section-head p { color: rgba(255,255,255,0.7); }

/* Card base */
.card {
  background: #fff; border-radius: var(--csp-radius);
  border: 1px solid var(--csp-border);
  overflow: hidden; transition: var(--csp-transition);
  height: 100%; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--csp-shadow-hover); border-color: var(--csp-accent); }
.card__media { aspect-ratio: 4/3; background: var(--csp-bg-alt); overflow: hidden; display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 19px; margin-bottom: 10px; font-weight: 700; color: var(--csp-navy); }
.card__body p { color: var(--csp-muted); font-size: 15px; margin-bottom: 18px; flex: 1; }
.card__link { color: var(--csp-accent); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.card__link::after { content: '→'; transition: transform 0.3s; }
.card__link:hover::after { transform: translateX(4px); }

/* Grid utilities */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Accessibility helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; top: -100px; left: 0; background: #fff; padding: 12px; z-index: 9999; }
.skip-link:focus { top: 0; }

@media (max-width: 992px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }
}