/*
Theme Name: Cyber Cam Services
Theme URI: https://example.com/
Author: Cyber Cam Services
Description: Custom theme for Cyber Cam Services — security cameras and small-business networks. Includes a ready-made homepage, services, about and contact pages, a built-in quote request form (submissions are emailed and saved in the dashboard), local-business SEO markup, and Customizer settings for your phone, email, service area and services.
Version: 1.4.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: secureline
Tags: business, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--ink: #0b1526;
	--ink-2: #13223a;
	--ink-3: #1c3050;
	--text: #1d2635;
	--muted: #5b6678;
	--line: #e3e8ef;
	--bg: #ffffff;
	--bg-soft: #f4f7fb;
	--accent: #1f7aec;
	--accent-dark: #135fc0;
	--signal: #22c55e;
	--radius: 10px;
	--shadow: 0 10px 30px rgba(11, 21, 38, 0.08);
	--wrap: 1160px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	background: #fff; color: var(--ink); padding: 12px 18px; top: 8px; left: 8px; border-radius: 6px;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .85em 1.5em; border-radius: 8px; border: 2px solid transparent;
	font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s, transform .15s;
	font-family: inherit; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #b9c4d6; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar span + span { margin-left: 18px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.1; }
.brand-tag { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.custom-logo { max-height: 52px; width: auto; }
.brand-logo { display: block; height: 46px; width: auto; }
.site-footer .brand-logo { height: 42px; }
@media (max-width: 420px) { .site-header .brand-logo { height: 38px; } }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a { display: block; padding: 10px 14px; color: var(--text); text-decoration: none; font-weight: 550; border-radius: 6px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--accent); background: var(--bg-soft); }
.main-nav .sub-menu { display: none; }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.header-phone { display: none; }
	.main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 22px 18px; }
	.main-nav .sub-menu { display: block; padding: 0 0 0 14px; }
}
@media (max-width: 520px) { .header-cta .btn { display: none; } }

/* ---------- Hero ---------- */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background:
		radial-gradient(1000px 500px at 85% -10%, rgba(31,122,236,.35), transparent 60%),
		radial-gradient(700px 400px at -5% 110%, rgba(34,211,238,.14), transparent 60%),
		linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
	background-size: cover; background-position: center;
}
.hero.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,21,38,.92) 35%, rgba(11,21,38,.55)); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding-top: 90px; padding-bottom: 100px; }
.hero h1 { color: #fff; }
.hero-lead { font-size: 1.18rem; color: #c8d3e4; max-width: 36em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero .eyebrow { color: #8fc0ff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: #c8d3e4; font-size: .95rem; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list svg { color: var(--signal); flex: none; }

/* Hero "camera feed" panel */
.feed {
	background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 14px;
	padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feed-cell {
	position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
	background: linear-gradient(135deg, #1a2b46, #0f1b2e);
}
.feed-cell::after {
	content: ""; position: absolute; inset: 0;
	background: repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 2px, transparent 2px 4px);
}
.feed-cell svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.feed-label { position: absolute; left: 8px; top: 6px; font: 600 10px/1 ui-monospace, Menlo, Consolas, monospace; color: #dbe6f5; letter-spacing: .05em; z-index: 1; }
.feed-rec { position: absolute; right: 8px; top: 6px; font: 700 10px/1 ui-monospace, Menlo, Consolas, monospace; color: #ff6b6b; z-index: 1; display: flex; gap: 4px; align-items: center; }
.feed-rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; }
.feed-status { display: flex; justify-content: space-between; font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace; color: #9fb0c8; padding: 12px 4px 2px; }
.feed-status b { color: var(--signal); font-weight: 700; }

@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 70px; }
	.feed { max-width: 520px; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #cfd9e8; transform: translateY(-2px); }
.card-icon {
	width: 50px; height: 50px; border-radius: 10px; display: grid; place-items: center;
	background: rgba(31,122,236,.1); color: var(--accent); margin-bottom: 18px;
}
.card p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Why us */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.checks .tick { width: 28px; height: 28px; border-radius: 50%; background: rgba(34,197,94,.12); color: #16a34a; display: grid; place-items: center; }
.checks strong { display: block; color: var(--ink); }
.checks span.d { color: var(--muted); font-size: .97rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.stat:nth-child(2), .stat:nth-child(3) { background: var(--ink-3); }
.stat b { display: block; font-size: 2.3rem; line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat span { color: #b9c4d6; font-size: .95rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; font-weight: 550; font-size: .95rem; color: var(--ink); }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before {
	counter-increment: step; content: counter(step, decimal-leading-zero);
	position: absolute; top: 0; left: 0; font-weight: 800; font-size: 1.05rem; color: var(--accent);
	width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-items: center;
}
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; padding: 60px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #e3eeff; }
.cta-band .btn-light { background: #fff; color: var(--accent-dark); }
.cta-band .btn-light:hover { background: var(--ink); color: #fff; }

/* Quote section */
.quote-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.contact-list a, .contact-list b { color: var(--ink); text-decoration: none; font-weight: 650; }
@media (max-width: 900px) { .quote-wrap { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .quote-form { padding: 22px; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; color: var(--ink); }
.field .req { color: #d14343; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid #cdd6e3; border-radius: 8px;
	font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(31,122,236,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-weight: 550; }
.notice-success { background: #e8f8ee; color: #166534; border: 1px solid #bbe5c9; }
.notice-error { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }

/* ---------- Inner pages ---------- */
.page-hero { background: linear-gradient(160deg, var(--ink), var(--ink-3)); color: #fff; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #c8d3e4; margin: 10px 0 0; max-width: 40em; }
.content-area { padding: 60px 0 80px; }
.entry-content { max-width: 780px; }
.entry-content.wide { max-width: none; }
.entry-content > * + h2 { margin-top: 1.6em; }
.entry-content ul { padding-left: 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content .alignwide { max-width: none; }
.post-list { display: grid; gap: 28px; max-width: 780px; }
.post-item { border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.post-item h2 { font-size: 1.5rem; margin-bottom: .3em; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.pagination { margin-top: 30px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aab6c9; padding: 70px 0 0; font-size: .95rem; }
.site-footer a { color: #dbe4f0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-tag { color: #8796ad; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .87rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky call bar */
.mobile-callbar { display: none; }
@media (max-width: 700px) {
	.mobile-callbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 20px rgba(0,0,0,.15); }
	.mobile-callbar a { text-align: center; padding: 14px; font-weight: 700; text-decoration: none; color: #fff; background: var(--ink); }
	.mobile-callbar a + a { background: var(--accent); }
	body { padding-bottom: 52px; }
}

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .88rem; color: var(--muted); }
.sticky, .gallery-caption, .bypostauthor { }

/* Hide the top bar on phones — the sticky call bar covers it */
@media (max-width: 700px) { .topbar { display: none; } }

:root { --cyan: #22d3ee; }
.hero .eyebrow { color: var(--cyan); }

/* ---------- Coming Soon page ---------- */
body.coming-soon { background: var(--ink); padding-bottom: 0; }
.cs {
	min-height: 100vh; display: flex; flex-direction: column; color: #fff;
	background:
		radial-gradient(900px 500px at 90% -10%, rgba(31,122,236,.35), transparent 60%),
		radial-gradient(700px 450px at -10% 110%, rgba(34,211,238,.16), transparent 60%),
		linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 60%, var(--ink-3) 100%);
}
.cs-inner { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 70px 22px 40px; text-align: center; }
.cs-logo { display: block; height: 56px; width: auto; margin: 0 auto 56px; }
.cs .eyebrow { color: var(--cyan); justify-content: center; }
.cs h1 { color: #fff; }
.cs-lead { font-size: 1.15rem; color: #c8d3e4; margin: 0 auto; max-width: 34em; }
.cs-actions { justify-content: center; }
.cs-form { margin-top: 50px; text-align: left; }
.cs-form h2 { color: #fff; font-size: 1.4rem; text-align: center; margin-bottom: 20px; }
.cs-foot { text-align: center; color: #7f8ea6; font-size: .87rem; padding: 24px 22px 30px; }
@media (max-width: 600px) { .cs-inner { padding-top: 48px; } .cs-logo { height: 44px; margin-bottom: 40px; } }
