/*
Theme Name: Stone Mountain Protection
Theme URI: https://www.stonemountainprotection.com
Author: Stone Mountain Protection
Description: Custom WordPress theme for Stone Mountain Protection — CCTV security, alarm, networking, audio and display system installations across the Toronto GTA. Includes an editable front page, a Business Security page template, a Services content type and a working contact form that emails you and stores every lead in the WordPress admin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smp
Tags: business, security, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ---------------------------------------------------------------
   1. Design tokens
--------------------------------------------------------------- */
:root {
  --navy-deep: #16203c;
  --navy: #22315c;
  --primary: #2f5fd0;
  --accent: #3e7bf0;
  --steel: #c3ccd8;
  --background: #f7f9fc;
  --foreground: #1b2338;
  --muted-foreground: #66718a;
  --card: #ffffff;
  --secondary: #eaeff7;
  --border: #dde4ee;
  --radius: 8px;
  --gradient-navy: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--primary));
  --gradient-blue: linear-gradient(100deg, var(--primary), var(--accent));
  --gradient-steel: linear-gradient(120deg, #eef2f7, #b6c1d0);
  --shadow-elevate: 0 24px 60px -28px rgba(22, 32, 60, 0.55);
  --shadow-glow: 0 0 0 1px rgba(62, 123, 240, 0.35), 0 18px 50px -20px rgba(62, 123, 240, 0.45);
  --maxw: 1220px;
}

/* ---------------------------------------------------------------
   2. Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4, .display {
  font-family: "Oswald", "Arial Narrow", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; color: var(--primary); text-transform: uppercase; }
.eyebrow-light { color: rgba(255,255,255,0.6); }
.muted { color: var(--muted-foreground); }
.center { text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.surface-navy { background-image: var(--gradient-navy); color: #fafbfd; }
.surface-blue { background-image: var(--gradient-blue); color: #fff; }
.text-gradient-steel {
  background-image: var(--gradient-steel);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card-elevated {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-elevate);
}
.grid-lines {
  background-image:
    linear-gradient(rgba(195,204,216,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,204,216,0.22) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------------------------------------------------------------
   3. Buttons
--------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 14px 28px;
  font-weight: 700; font-size: 16px; border: 0; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background-image: var(--gradient-blue); color: #fff; box-shadow: var(--shadow-glow); }
.btn-outline { border: 1px solid rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: #fff; color: var(--navy-deep); }
.btn-block { width: 100%; justify-content: center; }
.pill-static {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px;
  background-image: var(--gradient-blue); color: #fff; box-shadow: var(--shadow-glow);
}

/* ---------------------------------------------------------------
   4. Header
--------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(221,228,238,0.6);
  background: rgba(247,249,252,0.9);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 6px 16px;
}
.site-logo img { height: 104px; width: auto; }
.main-nav ul { display: flex; align-items: center; gap: 24px; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--muted-foreground); }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-weight: 700; }

/* ---------------------------------------------------------------
   5. Hero
--------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--navy-deep) 18%, rgba(22,32,60,0.72) 52%, rgba(22,32,60,0) 92%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 112px 20px; }
.hero-copy { max-width: 660px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1);
  border-radius: 999px; padding: 7px 16px; color: rgba(255,255,255,0.9);
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
}
.hero h1 { margin-top: 24px; font-size: clamp(40px, 6vw, 72px); color: #fff; font-weight: 700; }
.hero p.lead { margin-top: 24px; max-width: 560px; font-size: 18px; color: rgba(255,255,255,0.8); }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.stats { position: relative; border-top: 1px solid rgba(255,255,255,0.1); }
.stats-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 8px; text-align: center; }
.stat-value { font-family: "Oswald", sans-serif; font-size: 36px; font-weight: 700; color: #fff; }
.stat-label { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; color: rgba(255,255,255,0.6); text-transform: uppercase; }

/* ---------------------------------------------------------------
   6. Mission
--------------------------------------------------------------- */
.mission { position: relative; overflow: hidden; }
.mission .grid-lines { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.mission-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 0 20px; text-align: center; }
.mission-quote { margin-top: 24px; font-family: "Oswald", sans-serif; font-size: clamp(26px, 3.4vw, 42px); font-weight: 500; line-height: 1.2; color: var(--navy-deep); }
.mission-rule { width: 96px; height: 1px; background: var(--primary); margin: 32px auto 0; }
.mission-sign { margin-top: 20px; font-size: 14px; font-weight: 600; letter-spacing: 0.2em; color: var(--muted-foreground); }

/* ---------------------------------------------------------------
   7. Services
--------------------------------------------------------------- */
.section-head { max-width: 680px; }
.section-head h2 { margin-top: 16px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.services-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05); transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.3); }
.service-media { position: relative; height: 208px; overflow: hidden; }
.service-media img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.7s ease; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-media h3 {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 16px;
  background: linear-gradient(to top, var(--navy-deep), transparent);
  color: #fff; font-size: 21px; font-weight: 700;
}
.service-card p { padding: 20px; font-size: 15px; color: rgba(255,255,255,0.7); }
.service-cta {
  display: flex; flex-direction: column; justify-content: space-between;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.12);
  background-image: var(--gradient-blue); padding: 28px; color: #fff;
}
.service-cta h3 { font-size: 24px; font-weight: 700; }
.service-cta p { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,0.85); }

/* ---------------------------------------------------------------
   8. Split sections
--------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { margin-top: 16px; font-size: clamp(30px, 4vw, 48px); color: var(--navy-deep); font-weight: 700; }
.split p.lead { margin-top: 16px; color: var(--muted-foreground); }
.badge-float { position: relative; }
.badge-float > img { border-radius: 24px; box-shadow: var(--shadow-elevate); width: 100%; object-fit: cover; }
.badge-card {
  position: absolute; left: 24px; bottom: -24px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 16px; padding: 16px 24px; box-shadow: var(--shadow-glow);
}
.feature-list { margin-top: 32px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 16px; align-items: center; font-weight: 500; }
.feature-dot {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}

/* ---------------------------------------------------------------
   9. About / process
--------------------------------------------------------------- */
.about { background: var(--secondary); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
.about h2 { margin-top: 16px; font-size: clamp(30px, 4vw, 48px); color: var(--navy-deep); font-weight: 700; }
.about-body p { margin-top: 20px; font-size: 18px; color: var(--muted-foreground); }
.value-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-grid .card-elevated { padding: 20px; }
.value-grid h4 { margin-top: 12px; font-size: 18px; color: var(--navy-deep); }
.value-grid p { margin-top: 4px; font-size: 15px; color: var(--muted-foreground); }
.process-card { padding: 32px; height: fit-content; }
.process-card h3 { font-size: 24px; color: var(--navy-deep); }
.process-list { margin-top: 28px; display: grid; gap: 28px; }
.process-list li { display: flex; gap: 20px; }
.process-step { font-family: "Oswald", sans-serif; font-size: 30px; font-weight: 700; color: rgba(47,95,208,0.35); }
.process-list h4 { font-size: 18px; color: var(--navy-deep); }
.process-list p { margin-top: 4px; font-size: 15px; color: var(--muted-foreground); }

/* ---------------------------------------------------------------
   10. Contact
--------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; }
.contact .grid-lines { position: absolute; inset: 0; opacity: 0.1; pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact h2 { font-size: clamp(32px, 4vw, 48px); color: #fff; font-weight: 700; }
.contact .lead { margin-top: 16px; max-width: 520px; color: rgba(255,255,255,0.7); }
.contact-list { margin-top: 40px; display: grid; gap: 20px; }
.contact-item { display: flex; align-items: center; gap: 16px; color: #fff; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.contact-label { display: block; font-size: 12px; letter-spacing: 0.2em; color: rgba(255,255,255,0.55); }
.contact-value { font-size: 18px; font-weight: 600; color: #fff; }
.contact-value.big { font-family: "Oswald", sans-serif; font-size: 24px; font-weight: 700; }

/* Contact form */
.smp-form { padding: 32px; }
.smp-form h3 { font-size: 24px; color: var(--navy-deep); }
.smp-field { margin-top: 16px; }
.smp-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--foreground); }
.smp-field input, .smp-field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--foreground);
  padding: 12px 16px; font-size: 15px; font-family: inherit; outline: none;
}
.smp-field input::placeholder, .smp-field textarea::placeholder { color: var(--muted-foreground); opacity: 1; }
.smp-field input:focus, .smp-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(62,123,240,0.25); }
.smp-hp { position: absolute !important; left: -9999px !important; }
.smp-form .note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted-foreground); }
.smp-notice { margin-bottom: 16px; border-radius: var(--radius); padding: 14px 16px; font-size: 15px; font-weight: 600; }
.smp-notice.success { background: #e5f6ec; color: #12643a; border: 1px solid #b7e3c8; }
.smp-notice.error { background: #fdeaea; color: #8c1c1c; border: 1px solid #f3c2c2; }

/* ---------------------------------------------------------------
   11. Business security page
--------------------------------------------------------------- */
.solutions { margin-top: 56px; display: grid; gap: 80px; }
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.solution figure { margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-elevate); }
.solution.reverse figure { order: 2; }
.solution-tag {
  display: inline-flex; align-items: center; gap: 12px; border-radius: 999px;
  background: rgba(47,95,208,0.1); color: var(--primary); padding: 8px 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em;
}
.solution h3 { margin-top: 20px; font-size: clamp(24px, 3vw, 32px); color: var(--navy-deep); font-weight: 700; }
.solution p { margin-top: 16px; color: var(--muted-foreground); }
.check-list { margin-top: 24px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; font-size: 15px; }
.check-list li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.promise { border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); padding: 28px; }
.promise h3 { margin-top: 16px; font-size: 21px; color: #fff; }
.promise p { margin-top: 8px; font-size: 15px; color: rgba(255,255,255,0.7); }
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }

/* ---------------------------------------------------------------
   12. Generic page / posts
--------------------------------------------------------------- */
.page-hero { background-image: var(--gradient-navy); color: #fff; padding: 72px 0; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); }
.entry { max-width: 820px; margin: 0 auto; padding: 64px 20px; }
.entry h2, .entry h3 { margin-top: 32px; color: var(--navy-deep); }
.entry p, .entry ul, .entry ol { margin-top: 16px; }
.entry ul { list-style: disc; padding-left: 22px; }

/* ---------------------------------------------------------------
   13. Footer
--------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--background); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-inner img { height: 157px; width: auto; }
.footer-inner p { max-width: 620px; font-size: 15px; color: var(--muted-foreground); }
.pay-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-foreground); }
.pay-badges span { border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; }
.footer-meta { font-size: 12px; color: var(--muted-foreground); }

/* ---------------------------------------------------------------
   14. Responsive
--------------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .split, .contact-grid, .solution, .promises { grid-template-columns: 1fr; }
  .solution.reverse figure { order: 0; }
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 16px 20px; }
  .main-nav.open ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .site-logo img { height: 56px; }
  .footer-inner img { height: 110px; }
  .hero-inner { padding: 72px 20px; }
  .value-grid { grid-template-columns: 1fr; }
  .pill-static { display: none; }
}
