/*
Theme Name: Charleston Locksmith Pro
Description: Custom High-Fidelity Theme (Exact Visual Clone)
Author: Antigravity AI
Version: 4.0.0
*/

:root {
  --primary: #1d1c27; /* Dark Navy/Charcoal Background */
  --accent: #c0392b; /* Coral/red accent — AA-compliant (white text passes 5.5:1) */
  --accent-hover: #a5311f;
  --accent-bright: #ff5d4e; /* Original bright coral — only for coral TEXT on dark backgrounds */
  --accent-text: #c0392b; /* coral text on light backgrounds */
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --text: #333333;
  --text-muted: #555555;
  --border: #e9ecef;
}

body {
  font-family: 'Poppins', 'Montserrat', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  padding-bottom: 60px; /* Fixed bottom bar offset */
}

h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; color: #111; margin-top: 0; }
.container { max-width: 95%; margin: 0 auto; padding: 0 20px; }
.header-container { width: 95%; margin: 0 auto; }
.text-center { text-align: center; }
.bg-light { background: var(--bg-light); }
.flex-row { display: flex; flex-wrap: wrap; }

/* Global Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: 2px; font-weight: 700; text-decoration: none; transition: 0.3s; cursor: pointer; text-transform: uppercase; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: #111; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-large { font-size: 1.1rem; padding: 15px 35px; }

/* -------------------------------------------------------------
   EXACT CLONE: HEADER
------------------------------------------------------------- */
.site-header {
    background-color: var(--primary); /* #1d1c27 */
    padding: 15px 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-logo img {
    max-height: 63px; /* Reduced by 10% from 70px */
    width: auto;
}

/* TOP ROW (Secondary Nav & Phone) */
.top-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.top-bar-spacer {
    width: 160px; /* Counter-balance for phone block */
}
.secondary-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.secondary-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.secondary-nav a {
    color: var(--accent-bright); /* bright coral on dark header */
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}
.header-phone {
    color: var(--accent-bright); /* bright coral on dark header */
    font-size: 14px;
    font-weight: 700;
    width: 160px;
    text-align: right;
}
.header-phone i {
    margin-right: 5px;
}

/* MAIN ROW (Primary Nav & CTA) */
.primary-nav {
    flex: 1; /* Take up remaining space */
    display: flex;
    justify-content: center; /* Center the links perfectly */
    padding: 0 20px;
}
.primary-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}
.primary-nav > ul > li { position: relative; padding-bottom: 5px; }
.primary-nav > ul > li > a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
}
.primary-nav a:hover { color: var(--accent-bright); }
.primary-nav a i { font-size: 12px; margin-left: 4px; }

/* Dropdown Submenu */
.primary-nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 250px;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-top: 3px solid var(--accent);
    z-index: 1001;
}
/* Level 3 Dropdowns */
.primary-nav ul ul ul {
    top: -3px;
    left: 100%;
    border-top: 3px solid var(--accent);
}
.primary-nav li:hover > ul { display: flex; }
.primary-nav ul ul li { position: relative; padding: 0; }
.primary-nav ul ul a {
    padding: 10px 20px;
    display: block;
    color: var(--primary); /* Text is dark in dropdown */
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #f5f5f5;
    text-transform: none;
}
.primary-nav ul ul a:hover {
    background: var(--bg-light);
    color: var(--accent);
    padding-left: 25px;
}
.primary-nav ul ul li:last-child > a { border-bottom: none; }

/* Header CTA Button */
.cta-button {
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 25px;
    border-radius: 2px;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.cta-button:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
}

/* Base Rest of Site */
.hero-video-section { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #1d1c27 url('assets/hero-poster.jpg') center center / cover no-repeat; }
.hero-bg-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: 1; }
.hero-overlay { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(29, 28, 39, 0.75); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; max-width: 800px; }
.hero-content h1 { color: #fff; font-size: 3.5rem; margin-bottom: 20px; }
.hero-subtext { font-size: 1.25rem; margin-bottom: 30px; font-weight: 500; }
.hero-ctas { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; }
.hero-trust { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hero-trust img { max-height: 60px; width: auto; flex-shrink: 0; margin: 0; }

/* Footers and Inner Layouts... */
.trust-strip { background: var(--primary); color: #fff; padding: 20px 0; }
.trust-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.trust-item { font-weight: 600; font-size: 1.1rem; display:flex; align-items:center; gap: 10px; }

.section-services { padding: 80px 0; }
.service-grid-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-box { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); text-align: center; padding-bottom: 30px; transition: transform 0.3s ease; }
.service-box img { width: 100%; height: 200px; object-fit: cover; border-bottom: 4px solid var(--accent); }
.service-box h3 { margin: 20px 0 10px; font-size: 1.5rem; }
.service-box p { padding: 0 20px; color: var(--text-muted); font-size: 0.95rem; }
.service-box ul { list-style: none; padding: 0; margin: 15px 20px 25px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.service-box ul li { padding: 8px 0; font-weight: 600; font-size: 0.9rem; border-bottom: 1px solid #f1f1f1; }

.section-about { padding: 80px 0; }
.check-list { list-style: none; padding: 0; margin: 20px 0 30px; }
.check-list li { margin-bottom: 10px; font-weight: 600; display:flex; gap: 10px; align-items:center;}
.check-list i { color: var(--accent); font-size: 1.2rem;}

.city-tag { display: inline-block; padding: 10px 20px; background: #fff; border: 1px solid var(--border); border-radius: 30px; font-weight: 600; color: var(--text); text-decoration: none; transition: 0.3s; }
.city-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Footers */
.footer-top-map { background: var(--primary); padding: 50px 0; border-bottom: 1px solid #333; }
.site-footer { background: #1c192c; color: #fff; padding: 60px 0 30px; font-family: 'Poppins', sans-serif;} 
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-widget h3 { color: #fff; margin-bottom: 25px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* typography matches */
.brand-col p { font-size: 13px; line-height: 1.8; color: #e0e0e0; }
.footer-logo { max-width: 200px; margin-bottom: 20px; }

/* bullets */
.services-col .footer-bullet-links { list-style: none; padding: 0; margin: 0; }
.services-col .footer-bullet-links li { margin-bottom: 12px; position: relative; padding-left: 15px; }
.services-col .footer-bullet-links li::before { content: '•'; position: absolute; left: 0; color: #fff; font-size: 18px; top: -4px;}
.services-col .footer-bullet-links a { color: #e0e0e0; text-decoration: none; font-size: 13px; font-weight: 500; transition: 0.3s;}
.services-col .footer-bullet-links a:hover { color: var(--accent-bright); }

/* hours */
.hours-list p { font-size: 13px; margin-bottom: 12px; color: #e0e0e0; font-weight: 500; }

.footer-bottom { background: #0a0a0f; padding: 20px 0; font-size: 0.9rem; color: #888; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom a { color: #888; text-decoration: none; margin: 0 10px; }

/* Contact Column Separators & Icons */
.contact-col .contact-item { display: flex; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.red-icon { color: var(--accent); margin-right: 15px; font-size: 16px; margin-top: 3px; }
.contact-info { font-size: 13px; line-height: 1.6; color:#e0e0e0; }
.contact-info strong { color: #fff; font-weight:600; display:block; margin-bottom:5px; }

/* Social Media Circles */
.social-row { display: flex; gap: 10px; margin-top: 20px; margin-left: 30px; }
.social-circle { background: #ffffff; color: var(--accent); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; transition: transform 0.3s ease; }
.social-circle:hover { transform: scale(1.1); background: var(--accent); color: #fff;  }

/* FIXED BOTTOM BAR WITH INDIVIDUAL HIGH-RES BADGES */
.fixed-credentials-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #1B1D21; box-shadow: 0 -2px 10px rgba(0,0,0,0.5); z-index: 1000; padding: 12px 0; border-top: 3px solid var(--accent); }
.cred-inner { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; width: 100%; max-width: 1400px; margin: 0 auto; }
.trust-badge-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.2s; }
.trust-badge-link:hover { transform: translateY(-2px); }
.trust-badge-link img { max-height: 48px; width: auto; object-fit: contain; }

/* BBB Mimic for Missing Asset */
.bbb-mimic { background: #003666; padding: 5px 10px; border-radius: 4px; display: flex; align-items: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,0.2); height: 48px; box-sizing: border-box; }
.bbb-a { font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; border-right: 1px solid #fff; padding-right: 8px; }
.bbb-text { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 700; line-height: 1.1; text-align: left; letter-spacing: 0.5px; }

@media(max-width: 900px) {
    .cred-inner { gap: 20px; }
    .trust-badge-link img, .bbb-mimic { max-height: 38px; height: 38px; }
    .bbb-a { font-size: 18px; }
    .bbb-text { font-size: 8px; }
}
@media(max-width: 600px) {
    .cred-inner { gap: 10px; }
    .trust-badge-link img, .bbb-mimic { max-height: 30px; height: 30px; }
    .bbb-a { font-size: 15px; padding-right: 5px; }
    .bbb-text { font-size: 7px; }
}

/* -------------------------------------------------------------
   EXACT CLONE: CONTACT US PAGE
------------------------------------------------------------- */
.contact-hero-bg { background: #f0f4f8; padding: 100px 0 60px; }
.contact-cards-container { display: flex; gap: 30px; justify-content: center; }
.contact-card {
    background: #fff;
    padding: 50px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    flex: 1;
    max-width: calc(50% - 20px) !important; box-sizing: border-box;
}
.contact-card.primary-card { background: var(--accent); color: #fff; box-shadow: 0 10px 40px rgba(255, 93, 78, 0.3); }
.contact-card.primary-card p, .contact-card.primary-card h3 { color: #fff; }
.contact-card-icon {
    width: 60px;
    height: 60px;
    background: #1d1c27; /* dark navy */
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
}
.contact-card h3 { font-size: 20px; margin-bottom: 10px; color: #1d1c27; font-weight: 700; }
.contact-card p { color: #666; font-size: 15px; }

/* TALK WITH US SECTION */
.talk-with-us-section { padding: 100px 0; background: #fff; }
.twu-grid { display: flex; gap: 60px; align-items: flex-start; }
.twu-left { flex: 0 0 45%; }
.twu-subtitle {
    color: var(--accent-text);
    text-transform: uppercase;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 3px;
}
.twu-left h2 {
    font-size: 54px;
    font-weight: 800;
    color: #1d1c27;
    margin-bottom: 30px;
    line-height: 1.1;
}
.twu-left p { color: #555; font-size: 16px; line-height: 1.8; }

.twu-right { flex: 1; }
.twu-form input, .twu-form textarea {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}
.twu-form textarea { height: 150px; resize: none; }
.twu-form .submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}
.twu-form .submit-btn:hover { background: #e04a3f; }

/* PREMIUM TECHNICIANS SECTION */
.section-team { padding: 100px 0; background: #fdfdfd; text-align: center; }
.section-team h2 { margin-bottom: 20px; font-size: 42px; font-weight: 800; color: #1d1c27; line-height: 1.1; letter-spacing: -0.5px; }
.section-team .subtitle { color: var(--accent-text); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 60px; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; justify-content: center; }
.team-member { background: #fff; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); overflow: hidden; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid #f0f0f0; position: relative; }
.team-member:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.12); border-color: var(--accent); }
.team-img-wrap { position: relative; height: 280px; overflow: hidden; }
.team-member img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: 0.5s ease; }
.team-member:hover img { transform: scale(1.05); }
.team-badge { position: absolute; bottom: 0; right: 0; background: var(--accent); color: #fff; padding: 6px 15px; font-size: 12px; font-weight: 800; border-top-left-radius: 12px; letter-spacing: 1px; }
.team-info { padding: 25px 20px; position: relative; }
.team-info::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; background: var(--accent); border-radius: 4px; }
.team-info h3 { margin: 0 0 5px; font-size: 20px; color: #111; font-weight: 800; letter-spacing: -0.5px; }
.team-info p { margin: 0 0 15px; color: #666; font-size: 14px; font-weight: 600; text-transform: uppercase; }
.team-call-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 12px 0; background: #1d1c27; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 6px; transition: 0.3s; gap: 8px; }
.team-member:hover .team-call-btn { background: var(--accent); color: #fff; }
/* INNER PAGE HEADER */
.page-title { text-align: center; margin-bottom: 30px; font-size: 38px; color: #1d1c27; }

/* FAQ ACCORDION */
details.cp-faq { background: #fff; border: 1px solid #e9ecef; border-radius: 6px; margin-bottom: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); overflow: hidden; transition: all 0.3s; }
details.cp-faq[open] { border-color: var(--accent); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
details.cp-faq summary { font-weight: 700; font-size: 16px; color: #1d1c27; padding: 18px 20px; cursor: pointer; list-style: none; display: flex; justify-content: flex-start; align-items: center; gap: 14px; background: #fdfdfd; font-family: 'Montserrat', sans-serif; }
details.cp-faq summary::-webkit-details-marker { display: none; }
details.cp-faq summary::before { content: '+'; font-size: 24px; color: var(--accent); transition: transform 0.3s; font-weight: 400; line-height: 1; flex-shrink: 0; }
details.cp-faq[open] summary::before { content: '\2212'; }
details.cp-faq[open] summary { border-bottom: 1px solid #f1f1f1; background: #fff; }
.cp-faq-content { padding: 20px; color: #555; line-height: 1.7; font-size: 15px; }
.cp-faq-content p { margin: 0; }

/* PREMIUM INNER PAGE LISTS (Why Choose Us Feature Cards) */
.page-content-wrapper ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 40px 0 !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.page-content-wrapper ul li {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 30px 25px 30px 65px !important;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #555;
    font-size: 15px;
    line-height: 1.6;
}
.page-content-wrapper ul li:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(255,93,78,0.08);
}
.page-content-wrapper ul li::before {
    content: '\f0eb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 32px;
    color: var(--accent);
    font-size: 24px;
}
.page-content-wrapper ul li strong {
    display: block;
    font-size: 18px;
    color: #1d1c27;
    margin-bottom: 10px;
    font-weight: 800;
}

@media(max-width: 992px) {
  .header-nav-area { display: none; }
  .fixed-credentials-bar { display: none; }
}


/* DYK NEO VISUAL CLONE LAYOUT */
.dyk-neo-card {
    position: relative;
    border: 6px solid #2b84ea;
    border-radius: 20px;
    padding: 85px 50px 50px 50px;
    background: #fff;
    margin: 120px 0 80px 0;
    clear: both;
    max-width: 100%; border-width: 4px;
}
.dyk-neo-header-mask {
    position: absolute;
    top: -6px;
    left: -6px;
    background: #fff;
    padding: 0 45px 25px 0;
    z-index: 5;
    border-bottom-right-radius: 20px;
}
.dyk-neo-title {
    font-size: 80px;
    font-weight: 900;
    color: #2b84ea;
    line-height: 0.95;
    margin: -15px 0 0 0;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-family: inherit;
}
.dyk-neo-icon {
    position: absolute;
    top: -85px;
    right: 40px;
    z-index: 6;
    background: #fff;
    padding: 0 25px;
}
.dyk-neo-content {
    position: relative;
    z-index: 10;
}
.dyk-neo-content h3 {
    font-size: 32px;
    font-weight: 900;
    color: #111;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.dyk-neo-content p {
    font-size: 20px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}
@media (max-width: 768px) {
    .dyk-neo-title { font-size: 48px; }
    .dyk-neo-header-mask { padding: 0 20px 10px 0; top: -5px; }
    .dyk-neo-card { padding: 60px 30px 40px 30px; margin-top: 100px; border-width:4px; }
    .dyk-neo-icon { right: 10px; top: -75px; transform: scale(0.8); padding: 0 10px; }
    .dyk-neo-content h3 { font-size: 24px; }
}


/* DYK Alignment Hotfix */
.dyk-neo-card { padding-top: 170px !important; }
@media (max-width: 768px) { .dyk-neo-card { padding-top: 110px !important; } }

/* DYK: Force list items to stack vertically, fully contained within section */
.dyk-neo-content ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}
.dyk-neo-content ul li {
    grid-column: unset !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}


/* UNIVERSAL LIST/GRID UPGRADE */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0 50px 0;
}
.feature-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-left: 4px solid #ff5d4e;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    color: #1d1c27;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}
.feature-card i {
    color: #ff5d4e;
    font-size: 22px;
    margin-right: 15px;
    flex-shrink: 0;
}
.section-headline {
    font-size: 36px;
    font-weight: 800;
    color: #1d1c27;
    margin: 60px 0 20px 0;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}
.section-headline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: #ff5d4e;
    border-radius: 2px;
}
.section-subtext {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 30px;
}
@media (max-width: 768px) {
    .section-headline { font-size: 28px; }
}


/* =========================================
   SIDEBAR NAV & 2-COLUMN LAYOUT MATRIX
   ========================================= */
.main-sidebar-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 75px;
    margin-top: 30px;
    align-items: flex-start;
}
.sidebar-column {
    flex: 0 0 300px;
    position: sticky;
    top: 130px;
}
.content-column {
    flex: 1;
    min-width: 0;
}
@media (max-width: 1024px) {
    .main-sidebar-layout {
        flex-direction: column-reverse; /* Sidebar elegantly drops below primary content on mobile */
    }
    .sidebar-column {
        flex: 1 1 100%;
        position: static;
        width: 100%;
        margin-top: 60px;
    }
}

/* Sidebar Menu Typography and Hover States cloned from UI request */
.sidebar-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav-menu li {
    border-bottom: 1px solid #d5d8de;
}
.sidebar-nav-menu li:first-child {
    border-top: 1px solid #d5d8de;
}
.sidebar-nav-menu a {
    display: block;
    padding: 18px 0;
    color: #4a5568;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}
.sidebar-nav-menu a:hover {
    color: #2b84ea;
    padding-left: 15px;
}

/* Satisfaction Trust Signal & Supplemental Copy */
.sidebar-promo {
    margin-top: 50px;
}
.sidebar-badge-svg {
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0px 8px 12px rgba(0,0,0,0.1));
}
.sidebar-promo p {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 25px;
}
.sidebar-promo a {
    color: #2b84ea;
    text-decoration: none;
    font-weight: 600;
}


/* CREDENTIALS PAGE DIRECTORY MATRIX */
.cred-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1200px;
}
.cred-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-top: 5px solid #2b84ea; /* Default Accent */
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cred-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.cred-logo-wrap {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}
/* Force absolute aspect-ratio constraint overriding theme image parameters */
.cred-logo-wrap img, .cred-logo-wrap svg {
    max-height: 80px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin: 0 auto;
    display: block;
}
.cred-title {
    font-size: 20px;
    font-weight: 800;
    color: #1d1c27;
    margin-bottom: 12px;
}
.cred-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

/* CRED-GRID 3-COL OVERRIDE */
.cred-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    max-width: 100% !important;
    margin: 50px auto !important;
    overflow: hidden;
}
.cred-card {
    flex: unset !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: auto !important;
    box-sizing: border-box !important;
    padding: 28px 18px !important;
    overflow: hidden;
    word-break: break-word;
}
.cred-logo-wrap {
    height: 90px !important;
}
.cred-title {
    font-size: 17px !important;
}
/* Bottom row wrapper: spans all 3 cols, centers the 2 remaining cards */
.cred-grid-row2 {
    grid-column: 1 / -1;
    display: flex;
    gap: 24px;
    justify-content: center;
}
.cred-grid-row2 .cred-card {
    flex: 0 0 calc(33.333% - 12px) !important;
    max-width: calc(33.333% - 12px) !important;
    min-width: 0 !important;
    width: auto !important;
}
@media (max-width: 1100px) {
    .cred-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .cred-grid-row2 {
        grid-column: auto;
        display: contents;
    }
    .cred-grid-row2 .cred-card {
        flex: unset !important;
        max-width: unset !important;
    }
}
@media (max-width: 580px) {
    .cred-grid {
        grid-template-columns: 1fr !important;
    }
}
/* END CRED-GRID OVERRIDE */

/* =============================================================
   PAGE HEADER — inner page h1
   ============================================================= */
.page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 24px;
}
.page-title {
    font-size: 42px;
    font-weight: 800;
    color: #1d1c27;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .page-title { font-size: 30px; }
}

/* =============================================================
   E-E-A-T AUTHOR BOX
   ============================================================= */
.eeat-author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 60px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e1e8f0;
    border-left: 5px solid #2b84ea;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(43, 132, 234, 0.06);
}
.eeat-author-img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #2b84ea;
    box-shadow: 0 4px 12px rgba(43,132,234,0.2);
}
.eeat-author-content {
    flex: 1;
    min-width: 0;
}
.eeat-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2b84ea;
    margin-bottom: 4px;
}
.eeat-author-name {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 800;
    color: #1d1c27;
    line-height: 1.3;
}
.eeat-author-bio {
    margin: 0 0 16px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.7;
}
.eeat-author-creds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.eeat-cred-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #1d1c27;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.eeat-cred-tag i {
    color: #ff5d4e;
    font-size: 11px;
}
@media (max-width: 640px) {
    .eeat-author-box { flex-direction: column; align-items: center; text-align: center; }
    .eeat-author-creds { justify-content: center; }
    .eeat-label { text-align: center; }
}

/* =============================================================
   PAGE CTA STRIP (above footer)
   ============================================================= */
.page-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #1d1c27 0%, #2a2838 100%);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.page-cta-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.page-cta-text strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}
.page-cta-text span {
    color: #b0b8c8;
    font-size: 14px;
}
.page-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(255,93,78,0.35);
    flex-shrink: 0;
}
.page-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,93,78,0.4);
    color: #fff;
}
@media (max-width: 640px) {
    .page-cta-strip { flex-direction: column; text-align: center; }
    .page-cta-text strong { font-size: 17px; }
}

/* =============================================================
   SIDEBAR TRUST SIGNALS
   ============================================================= */
.sidebar-trust-signals {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sidebar-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1d1c27;
    padding: 0;
}
.sidebar-trust-item svg {
    flex-shrink: 0;
}

/* =============================================================
   SIDEBAR EMERGENCY CTA
   ============================================================= */
.sidebar-emergency-cta {
    margin-top: 28px;
}
.sidebar-emergency-inner {
    background: linear-gradient(135deg, #ff5d4e 0%, #e04a3d 100%);
    border-radius: 10px;
    padding: 20px 22px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255,93,78,0.3);
}
.sidebar-emergency-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 10px;
}
.sidebar-phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: transform 0.2s;
}
.sidebar-phone-link:hover {
    transform: scale(1.04);
    color: #fff;
}
.sidebar-emergency-sub {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    margin-top: 8px;
}

/* =============================================================
   BREADCRUMBS polish
   ============================================================= */
.site-breadcrumbs {
    background: #fdfdfd;
    border-bottom: 1px solid #eaeaea;
    padding: 12px 0;
    font-size: 13px;
    color: #666;
}
.site-breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* =============================================================
   INNER PAGE: Skip to main content (accessibility)
   ============================================================= */
.skip-to-main {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-main:focus {
    top: 0;
}

/* =============================================================
   LOCK INSTALLATION PAGE — SECTION DESIGNS
   ============================================================= */

/* --- SECTION 1: Why Choose Us Grid --- */
.li-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 0 50px 0;
}
.li-why-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.li-why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2b84ea, #ff5d4e);
    opacity: 0;
    transition: opacity 0.3s;
}
.li-why-card:hover { border-color: #2b84ea; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43,132,234,0.1); }
.li-why-card:hover::before { opacity: 1; }
.li-why-card--accent { background: linear-gradient(135deg, #ff5d4e 0%, #e04a3d 100%); border-color: transparent; color: #fff; }
.li-why-card--accent:hover { border-color: transparent; }
.li-why-card--accent .li-why-icon { background: rgba(255,255,255,0.2); color: #fff; }
.li-why-card--accent span { color: #fff; }
.li-why-icon { width: 44px; height: 44px; background: #f0f7ff; color: #2b84ea; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.li-why-card span { font-size: 13.5px; font-weight: 700; color: #1d1c27; line-height: 1.45; }
@media (max-width: 1024px) { .li-why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .li-why-grid { grid-template-columns: 1fr; } }

/* --- SECTION 2: Intro Steps --- */
.li-intro-block { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 36px 40px; margin: 0 0 50px 0; }
.li-intro-block > p { font-size: 16px; color: #444; line-height: 1.7; margin: 0 0 28px 0; font-weight: 500; }
.li-intro-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.li-intro-step { background: #fff; border-radius: 10px; padding: 22px 22px 22px 0; display: flex; gap: 18px; align-items: flex-start; border: 1px solid #e9edf2; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.li-intro-step-num { width: 42px; height: 42px; min-width: 42px; background: linear-gradient(135deg, #2b84ea, #1a6bc9); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; font-family: 'Montserrat', sans-serif; margin-left: 22px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(43,132,234,0.25); }
.li-intro-step-body strong { display: block; font-size: 15px; font-weight: 800; color: #1d1c27; margin-bottom: 6px; }
.li-intro-step-body p { font-size: 13.5px; color: #666; line-height: 1.6; margin: 0; }
@media (max-width: 768px) { .li-intro-steps { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .li-intro-block { padding: 24px 20px; } }

/* --- SECTION 3: Lock Brands --- */
.li-brands-section { margin: 0 0 55px 0; }
.li-brands-header { margin-bottom: 32px; }
.li-brands-header h2 { font-size: 30px; font-weight: 800; color: #1d1c27; margin: 0 0 10px 0; position: relative; padding-bottom: 14px; }
.li-brands-header h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: #ff5d4e; border-radius: 2px; }
.li-brands-header p { font-size: 15px; color: #555; line-height: 1.7; margin: 0; }
.li-brands-category { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; }
.li-brands-cat-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #1d1c27; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.li-brands-cat-label i { color: #2b84ea; font-size: 14px; }
.li-brands-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.li-brand-pill { display: inline-flex; align-items: center; padding: 8px 18px; background: #f0f7ff; color: #1a6bc9; border: 1px solid #cce0ff; border-radius: 30px; font-size: 14px; font-weight: 700; transition: background 0.2s, color 0.2s, transform 0.2s; cursor: default; }
.li-brand-pill:hover { background: #2b84ea; color: #fff; border-color: #2b84ea; transform: translateY(-2px); }
.li-brand-pill--security { background: #fff3f0; color: #c0392b; border-color: #ffd0ca; }
.li-brand-pill--security:hover { background: #ff5d4e; color: #fff; border-color: #ff5d4e; }
.li-brand-pill--smart { background: #f0faf5; color: #1a7a4a; border-color: #b0e4cc; }
.li-brand-pill--smart:hover { background: #1a7a4a; color: #fff; border-color: #1a7a4a; }
.li-brands-note { font-size: 13.5px; color: #777; font-style: italic; margin: 16px 0 0 0; padding-left: 16px; border-left: 3px solid #e2e8f0; }

/* --- SECTION 4: Stats --- */
.li-stats-section { margin: 0 0 55px 0; }
.li-stats-header h2 { font-size: 30px; font-weight: 800; color: #1d1c27; margin: 0 0 24px 0; position: relative; padding-bottom: 14px; }
.li-stats-header h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: #ff5d4e; border-radius: 2px; }
.li-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.li-stat-card { background: linear-gradient(135deg, #1d1c27 0%, #2a2838 100%); border-radius: 12px; padding: 24px 22px; display: flex; gap: 16px; align-items: flex-start; transition: transform 0.25s, box-shadow 0.25s; }
.li-stat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.15); }
.li-stat-card--wide { grid-column: 1 / -1; }
.li-stat-icon { width: 44px; height: 44px; min-width: 44px; background: linear-gradient(135deg, #ff5d4e, #e04a3d); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.li-stat-body p { color: #d0d8e8; font-size: 14.5px; line-height: 1.65; margin: 0; }
.li-stat-body em { color: #888; font-size: 13px; }
@media (max-width: 640px) { .li-stats-grid { grid-template-columns: 1fr; } .li-stat-card--wide { grid-column: auto; } }

/* --- SECTION 5: Process Timeline (card grid) --- */
.li-process-section { margin: 0 0 55px 0; }
.li-process-section h2 { font-size: 30px; font-weight: 800; color: #1d1c27; margin: 0 0 36px 0; position: relative; padding-bottom: 14px; }
.li-process-section h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: #ff5d4e; border-radius: 2px; }
.li-process-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.li-process-step { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px 24px 24px; position: relative; overflow: hidden; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.li-process-step:hover { border-color: #2b84ea; transform: translateY(-4px); box-shadow: 0 14px 35px rgba(43,132,234,0.08); }
.li-process-num { font-size: 54px; font-weight: 900; color: #f0f7ff; line-height: 1; margin-bottom: 12px; font-family: 'Montserrat', sans-serif; position: absolute; top: 10px; right: 16px; user-select: none; }
.li-process-connector { display: none; }
.li-process-content strong { display: block; font-size: 16px; font-weight: 800; color: #1d1c27; margin-bottom: 8px; position: relative; z-index: 1; }
.li-process-content p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; position: relative; z-index: 1; }
@media (max-width: 900px) { .li-process-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .li-process-timeline { grid-template-columns: 1fr; } }

/* --- SECTION 6: FAQ Section heading override --- */
.li-faq-section { margin: 0 0 55px 0; }
.li-faq-section h2 { font-size: 30px; font-weight: 800; color: #1d1c27; margin: 0 0 28px 0; position: relative; padding-bottom: 14px; }
.li-faq-section h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: #ff5d4e; border-radius: 2px; }
.li-faq-list { display: flex; flex-direction: column; gap: 0; }

/* --- SECTION 7: Local / Near Me --- */
.li-local-section { margin: 0 0 50px 0; }
.li-local-inner { background: linear-gradient(135deg, #f0f7ff 0%, #e8f3ff 100%); border: 1px solid #cce0ff; border-left: 5px solid #2b84ea; border-radius: 12px; padding: 28px 32px; display: flex; align-items: flex-start; gap: 20px; }
.li-local-icon { width: 52px; height: 52px; min-width: 52px; background: #2b84ea; color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.li-local-body h2 { font-size: 22px; font-weight: 800; color: #1d1c27; margin: 0 0 10px 0; }
.li-local-body p { font-size: 15px; color: #444; line-height: 1.7; margin: 0; }
@media (max-width: 580px) { .li-local-inner { flex-direction: column; } }

/* --- SECTION 8: Final Trust Block --- */
.li-trust-final { background: linear-gradient(135deg, #1d1c27 0%, #252333 100%); border-radius: 16px; padding: 40px 44px; display: flex; gap: 36px; align-items: flex-start; margin-bottom: 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); }
.li-trust-badge { flex-shrink: 0; width: 110px; }
.li-trust-badge svg { width: 110px; height: 110px; display: block; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3)); }
.li-trust-content h3 { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 12px 0; }
.li-trust-content p { font-size: 14.5px; color: #b0b8cc; line-height: 1.7; margin: 0 0 16px 0; }
.li-trust-content a { color: #ff5d4e; text-decoration: none; }
.li-trust-content a strong { color: #ff5d4e; }
.li-trust-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.li-trust-creds span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(255,255,255,0.08); color: #d0d8e8; border: 1px solid rgba(255,255,255,0.12); border-radius: 20px; font-size: 12px; font-weight: 700; }
.li-trust-creds i { color: #ff5d4e; font-size: 11px; }
.li-trust-cta { display: inline-flex; align-items: center; padding: 14px 28px; background: #ff5d4e; color: #fff !important; border-radius: 8px; font-weight: 800; font-size: 15px; text-decoration: none !important; transition: background 0.25s, transform 0.2s; box-shadow: 0 6px 20px rgba(255,93,78,0.35); }
.li-trust-cta:hover { background: #e04a3d; transform: translateY(-2px); }
@media (max-width: 768px) { .li-trust-final { flex-direction: column; align-items: center; text-align: center; padding: 30px 24px; } .li-trust-creds { justify-content: center; } }

/* =============================================================
   UNIVERSAL PAGE SECTION SYSTEM
   Shared by ALL inner service, auto, emergency & location pages
   ============================================================= */

/* --- Section heading with red underline bar --- */
.page-section-heading { margin: 0 0 28px 0; }
.page-section-heading h2,
.li-stats-header h2,
.li-brands-header h2,
.li-process-section h2,
.li-faq-section h2,
.li-local-body h2 { font-size: 30px; font-weight: 800; color: #1d1c27; margin: 0 0 0 0; position: relative; padding-bottom: 14px; }
.page-section-heading h2::after,
.li-stats-header h2::after,
.li-brands-header h2::after,
.li-process-section h2::after,
.li-faq-section h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 60px; height: 4px; background: #ff5d4e; border-radius: 2px; }
.page-section-heading { margin-bottom: 28px; }

/* Space before/after section headings in content */
.page-content-wrapper .page-section-heading { margin-top: 55px; }
.page-content-wrapper .page-section-heading:first-child { margin-top: 0; }

/* --- Intro text box (light panel) --- */
.page-intro-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2b84ea;
    border-radius: 10px;
    padding: 22px 28px;
    margin-bottom: 40px;
}
.page-intro-box p {
    font-size: 16px;
    color: #444;
    line-height: 1.75;
    margin: 0;
    font-weight: 500;
}

/* --- Why grid 4-col variant (explicit override) --- */
.li-why-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .li-why-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .li-why-grid--4 { grid-template-columns: 1fr; } }

/* --- Emergency response strip --- */
.page-emergency-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ff5d4e 0%, #c0392b 100%);
    border-radius: 12px;
    padding: 20px 28px;
    margin: 0 0 50px 0;
    box-shadow: 0 8px 24px rgba(255,93,78,0.28);
}
.page-emergency-icon {
    width: 52px; height: 52px; min-width: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    flex-shrink: 0;
}
.page-emergency-body { flex: 1; }
.page-emergency-body strong { display: block; font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.page-emergency-body span { font-size: 13.5px; color: rgba(255,255,255,0.88); }
.page-emergency-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 24px;
    background: #fff;
    color: #ff5d4e !important;
    border-radius: 8px;
    font-weight: 800; font-size: 16px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.page-emergency-cta:hover { background: #f5f5f5; transform: scale(1.03); }
@media (max-width: 640px) { .page-emergency-strip { flex-direction: column; text-align: center; } }

/* --- DYK (Did You Know) Banner --- */
.page-dyk-banner {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: linear-gradient(135deg, #fffbec 0%, #fff8e0 100%);
    border: 1px solid #f5d76e;
    border-left: 5px solid #f1c40f;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 0 0 50px 0;
}
.page-dyk-banner i {
    font-size: 24px;
    color: #f1c40f;
    flex-shrink: 0;
    margin-top: 2px;
}
.page-dyk-banner p { font-size: 15px; color: #555; line-height: 1.7; margin: 0; }

/* --- Location intro banner --- */
.loc-intro-banner {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    background: linear-gradient(135deg, #1d1c27 0%, #252333 100%);
    border-radius: 14px;
    padding: 32px 36px;
    margin-bottom: 40px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.loc-intro-icon {
    width: 60px; height: 60px; min-width: 60px;
    background: linear-gradient(135deg, #ff5d4e, #e04a3d);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(255,93,78,0.3);
}
.loc-intro-body h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 12px 0; }
.loc-intro-body p { font-size: 15px; color: #b0b8cc; line-height: 1.7; margin: 0; }
@media (max-width: 640px) { .loc-intro-banner { flex-direction: column; align-items: flex-start; padding: 24px 22px; } }

/* --- Advantage list (location pages) --- */
.loc-advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}
.loc-advantage-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 22px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.loc-advantage-card:hover { border-color: #2b84ea; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(43,132,234,0.08); }
.loc-advantage-icon {
    width: 42px; height: 42px; min-width: 42px;
    background: linear-gradient(135deg, #2b84ea, #1a6bc9);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(43,132,234,0.2);
}
.loc-advantage-body strong { display: block; font-size: 15px; font-weight: 800; color: #1d1c27; margin-bottom: 6px; }
.loc-advantage-body p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .loc-advantage-grid { grid-template-columns: 1fr; } }

/* --- Consistent stat card section spacing --- */
.li-stats-grid { margin-bottom: 50px; }
.li-why-grid { margin-bottom: 50px; }
.li-process-timeline { margin-bottom: 50px; }
.li-faq-list { margin-bottom: 50px; }
.loc-intro-banner { margin-bottom: 40px; }

/* =============================================================
   RESIDENTIAL LOCKSMITH PAGE — UNIQUE SECTION STYLES
   ============================================================= */

/* --- Service Link Cards (Section 2) --- */
.res-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 55px;
}
.res-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}
.res-service-body strong a {
    color: #1d1c27;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: color 0.2s;
}
.res-service-card:hover .res-service-body strong a { color: #2b84ea; }
.res-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2b84ea, #ff5d4e);
    opacity: 0;
    transition: opacity 0.3s;
}
.res-service-card:hover {
    border-color: #2b84ea;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(43,132,234,0.1);
    color: inherit;
    text-decoration: none;
}
.res-service-card:hover::before { opacity: 1; }
.res-service-icon {
    width: 44px; height: 44px; min-width: 44px;
    background: linear-gradient(135deg, #2b84ea, #1a6bc9);
    color: #fff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(43,132,234,0.2);
    transition: background 0.3s;
}
.res-service-card:hover .res-service-icon { background: linear-gradient(135deg, #ff5d4e, #e04a3d); }
.res-service-body { flex: 1; min-width: 0; }
.res-service-body strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1d1c27;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.res-service-card:hover .res-service-body strong { color: #2b84ea; }
.res-service-body p { font-size: 13px; color: #666; line-height: 1.55; margin: 0; }
.res-service-arrow {
    width: 28px; height: 28px; min-width: 28px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    color: #2b84ea;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.2s, color 0.2s;
}
.res-service-card:hover .res-service-arrow { background: #2b84ea; color: #fff; }
@media (max-width: 900px) { .res-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .res-services-grid { grid-template-columns: 1fr; } }

/* --- 10 Recommended Locks Grid (Section 5) --- */
.res-locks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 55px;
}
.res-lock-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 22px 20px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.res-lock-card:hover {
    border-color: #2b84ea;
    box-shadow: 0 10px 28px rgba(43,132,234,0.08);
    transform: translateY(-3px);
}
.res-lock-num {
    font-size: 38px;
    font-weight: 900;
    color: #f0f7ff;
    line-height: 1;
    min-width: 48px;
    font-family: 'Montserrat', sans-serif;
    flex-shrink: 0;
    user-select: none;
}
.res-lock-body { flex: 1; min-width: 0; }
.res-lock-body strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1d1c27;
    margin-bottom: 7px;
}
.res-lock-body p { font-size: 13.5px; color: #555; line-height: 1.6; margin: 0 0 12px 0; }
.res-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.res-lock-badge--high { background: #fff0ee; color: #c0392b; border: 1px solid #ffc9c2; }
.res-lock-badge--standard { background: #f0f7ff; color: #1a6bc9; border: 1px solid #cce0ff; }
.res-lock-badge--smart { background: #f0faf5; color: #1a7a4a; border: 1px solid #b0e4cc; }
.res-lock-badge--premium { background: #fdfbf0; color: #8a6800; border: 1px solid #f0d970; }
.res-lock-badge--budget { background: #f5f5f5; color: #666; border: 1px solid #ddd; }
@media (max-width: 768px) { .res-locks-grid { grid-template-columns: 1fr; } }

/* --- Checklist Section (Section 6) --- */
.res-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.res-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.2s;
}
.res-checklist-item:last-child { border-bottom: none; }
.res-checklist-item:hover { background: #f8fafd; }
.res-checklist-icon {
    width: 32px; height: 32px; min-width: 32px;
    background: #f0faf5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    color: #1a7a4a;
    flex-shrink: 0;
    margin-top: 1px;
}
.res-checklist-body strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: #1d1c27;
    margin-bottom: 4px;
}
.res-checklist-body p { font-size: 13.5px; color: #666; line-height: 1.6; margin: 0; }

/* =============================================================
   PAGE HERO IMAGE BLOCK  (injected into inner service pages)
   ============================================================= */
.page-hero-image {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 0 50px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.10);
    background: #1d1c27;
}
.page-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.page-hero-image:hover .page-hero-img { transform: scale(1.03); }
.page-hero-caption {
    display: block;
    background: rgba(29,28,39,0.82);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 10px 20px;
    text-align: center;
    font-style: italic;
    letter-spacing: 0.2px;
}
@media (max-width: 768px) { .page-hero-img { height: 240px; } }

/* =============================================================
   RECENT WORK GALLERY — Filter Tabs + Masonry Grid + Overlay
   ============================================================= */

/* Filter tabs */
.rw-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px 0;
}
.rw-tab {
    padding: 10px 22px;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: #555;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s;
    font-family: inherit;
    outline: none;
}
.rw-tab:hover { border-color: #2b84ea; color: #2b84ea; }
.rw-tab.active { background: #2b84ea; border-color: #2b84ea; color: #fff; box-shadow: 0 4px 14px rgba(43,132,234,0.25); }

/* Masonry grid */
.rw-masonry-grid {
    columns: 3 280px;
    column-gap: 16px;
    margin-bottom: 50px;
}
.rw-item {
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #1d1c27;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: zoom-in;
}
.rw-item:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,0.12); }
.rw-lightbox { display: block; text-decoration: none; position: relative; overflow: hidden; }
.rw-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;
}
.rw-item:hover img { transform: scale(1.06); }

/* Hover overlay */
.rw-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(29,28,39,0.88) 0%, rgba(29,28,39,0.0) 55%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    gap: 6px;
}
.rw-item:hover .rw-overlay { opacity: 1; }
.rw-overlay-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 14px;
    align-self: flex-end;
    margin-bottom: 4px;
}
.rw-overlay p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.9);
    line-height: 1.4;
    margin: 0;
    font-style: italic;
}
@media (max-width: 640px) { .rw-masonry-grid { columns: 1; } }
@media (max-width: 900px) { .rw-masonry-grid { columns: 2; } }

/* =============================================================
   PRODUCTS > KEYS PAGE — Key Product Grid
   ============================================================= */
.keys-product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 55px; }
.keys-product-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.keys-product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(43,132,234,0.1); border-color: #2b84ea; }
.keys-product-img-wrap { width: 100%; height: 200px; background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.keys-product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; display: block; }
.keys-product-card:hover .keys-product-img { transform: scale(1.07); }
.keys-product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.keys-product-body h3 { font-size: 17px; font-weight: 800; color: #1d1c27; margin: 0 0 10px 0; position: relative; padding-bottom: 10px; }
.keys-product-body h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; background: #ff5d4e; border-radius: 2px; }
.keys-product-body p { font-size: 13.5px; color: #666; line-height: 1.65; margin: 0 0 16px 0; flex: 1; }
.keys-learn-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #2b84ea; text-decoration: none; transition: color 0.2s; align-self: flex-start; }
.keys-learn-more::after { content: '→'; transition: transform 0.2s; }
.keys-learn-more:hover { color: #ff5d4e; text-decoration: none; }
.keys-learn-more:hover::after { transform: translateX(4px); }
@media (max-width: 1024px) { .keys-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .keys-product-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   MOBILE EXPERIENCE  —  tap-to-call, burger nav, Google reviews badge
   The desktop header is untouched above 992px; everything here is additive.
   ========================================================================= */

/* --- Google reviews badge (all breakpoints) --- */
.hero-reviews {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 26px;
    padding: 9px 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, transform 0.25s ease;
}
.hero-reviews:hover { background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.hero-reviews__stars {
    color: #fbbc04;              /* Google gold */
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.hero-reviews__text { color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
.hero-reviews__text strong { font-weight: 800; }

/* Desktop-only: hide the mobile chrome entirely */
.mobile-actions,
.nav-burger,
.nav-backdrop,
.mobile-callbar,
.mobile-nav-head { display: none; }

/* ============================ MOBILE (<= 992px) ============================ */
@media (max-width: 992px) {

    /* Stop the off-canvas nav panel (parked off the right edge) from widening
       the page and causing horizontal drift. `clip` kills sideways scroll
       without creating a scroll container, so the sticky header still works;
       `hidden` is the fallback for older browsers. */
    html, body { overflow-x: hidden; overflow-x: clip; max-width: 100%; }

    /* -- Compact top bar: logo left, Call + burger right -- */
    .top-bar-row { display: none; }
    .header-right-cta { display: none; }
    .site-header { padding: 10px 0; }
    .header-container { width: 92%; }
    .site-logo { flex: 0 1 auto; min-width: 0; }
    .site-logo img { max-height: 30px; width: auto; }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;        /* keep actions (incl. burger) intact */
    }

    /* Primary mobile CTA — opens the Request a Quote modal */
    .mobile-cta-btn {
        display: inline-flex;
        align-items: center;
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 11px;
        letter-spacing: 0.2px;
        text-transform: uppercase;
        padding: 0 14px;
        border-radius: 8px;                 /* square with curved edges */
        box-sizing: border-box;
        height: 44px;                       /* tidy header, still a comfortable tap target */
        box-shadow: 0 4px 14px rgba(255, 93, 78, 0.4);
        white-space: nowrap;
    }
    .mobile-cta-btn:active { background: var(--accent-hover); }

    /* Fixed bottom call bar (mobile) */
    .mobile-callbar {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        height: 54px;
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 800;
        font-size: 17px;
        letter-spacing: 0.5px;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.28);
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }
    .mobile-callbar i { font-size: 16px; }
    .mobile-callbar:active { background: var(--accent-hover); }
    /* Hide the bar while the slide-in menu is open */
    .site-header.mobile-open ~ .mobile-callbar { opacity: 0; visibility: hidden; }

    /* Lift Leo so its launcher sits above the fixed call bar. Needs #ask-leo.leo
       (not just #ask-leo) to out-rank ask-leo.css's own #ask-leo bottom rule. */
    #ask-leo.leo { bottom: 74px; }

    /* Burger — morphs into an X when open, stays above the panel */
    .nav-burger {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        flex: 0 0 auto;          /* never shrink or get clipped off the edge */
        width: 40px;
        height: 42px;
        padding: 0 8px;
        background: transparent;
        border: 0;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }
    .nav-burger span {
        display: block;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 3px;
        transition: transform 0.3s ease, opacity 0.2s ease;
    }
    .site-header.mobile-open .nav-burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .site-header.mobile-open .nav-burger span:nth-child(2) { opacity: 0; }
    .site-header.mobile-open .nav-burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* -- The slide-in nav panel -- */
    .primary-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        width: min(360px, 86vw);
        height: 100vh;
        height: 100dvh;
        padding: 0 0 48px;
        margin: 0;
        background: var(--primary);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(100%);
        transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 5;
    }
    .site-header.mobile-open .primary-nav { transform: translateX(0); }

    /* Panel header: title + prominent call / quote actions */
    .mobile-nav-head {
        display: block;
        /* extra top room so the floating close (✕) doesn't sit on the search */
        padding: 58px 22px 22px;
        border-bottom: 3px solid var(--accent);
        background: #17161f;
    }
    .mobile-nav-head__title {
        display: block;
        color: #8d8b98;
        font-family: 'Montserrat', sans-serif;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin-bottom: 14px;
    }
    .mobile-nav-call,
    .mobile-nav-quote {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-decoration: none;
        font-weight: 800;
        font-size: 15px;
        padding: 13px 16px;
        border-radius: 8px;
        min-height: 48px;
        box-sizing: border-box;
    }
    .mobile-nav-call { background: var(--accent); color: #fff; margin-bottom: 10px; }
    .mobile-nav-quote { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
    /* Keep text white on hover (out-ranks .primary-nav a:hover which turns it coral) */
    .primary-nav a.mobile-nav-call:hover { background: var(--accent-hover); color: #fff; }
    .primary-nav a.mobile-nav-quote:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

    /* Panel menu list */
    .primary-nav > ul {
        display: block;
        margin: 0;
        padding: 6px 0 0;
    }
    .primary-nav > ul > li { padding: 0; position: static; }
    .primary-nav ul li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .primary-nav a {
        display: block;
        color: #fff;
        padding: 15px 22px;
        font-size: 15px;
    }
    .primary-nav > ul > li > a { font-size: 15px; }

    /* Carets become full-height tap targets on the right edge */
    .primary-nav a i {
        float: right;
        margin: 0 !important;
        padding: 2px 6px;
        font-size: 18px;
        transition: transform 0.25s ease;
        pointer-events: auto;
    }
    .primary-nav .has-children.open > a > i { transform: rotate(180deg); }
    .primary-nav .has-children.open > a > i.fa-caret-right { transform: rotate(90deg); }

    /* Submenus: static accordions, hidden until .open (JS-driven) */
    .primary-nav ul ul {
        position: static;
        display: none;
        width: auto;
        box-shadow: none;
        border-top: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.22);
    }
    .primary-nav li:hover > ul { display: none; }           /* kill desktop hover-open */
    .primary-nav .has-children.open > ul { display: block; }
    .primary-nav ul ul a {
        color: #d7d5de;
        padding: 12px 22px 12px 36px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        text-transform: none;
        font-weight: 600;
        background: transparent;
    }
    .primary-nav ul ul ul a { padding-left: 52px; }
    .primary-nav ul ul a:hover { background: rgba(255,255,255,0.05); color: #fff; padding-left: 36px; }

    /* Dimming backdrop behind the panel */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 15, 0.55);
        z-index: 999;              /* below the sticky header's stacking context (1000) */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .site-header.mobile-open ~ .nav-backdrop { opacity: 1; visibility: visible; }

    /* -- Hero polish on phones -- */
    .hero-video-section { height: auto; min-height: auto; padding: 30px 0 48px; }
    /* Don't download the 5.5 MB hero video on mobile — the poster background shows instead */
    .hero-bg-video { display: none; }
    .hero-content h1 { font-size: 2.3rem; line-height: 1.15; }
    .hero-subtext { font-size: 1.05rem; }
    .hero-ctas { flex-direction: column; gap: 12px; }
    .hero-ctas .btn { width: 100%; box-sizing: border-box; }
    .hero-reviews { margin-bottom: 22px; }

    /* Reserve space for the fixed bottom call bar */
    body { padding-bottom: 54px; }

    /* Keep Leo's auto nudge-bubble from covering the hero CTAs */
    .leo-nudge { display: none !important; }
}

@media (max-width: 400px) {
    .mobile-cta-btn { font-size: 10px; padding: 8px 10px; letter-spacing: 0; }
    .site-logo img { max-height: 27px; }
    .mobile-callbar { font-size: 16px; }
    .hero-reviews__text { font-size: 13px; }
    .hero-content h1 { font-size: 2rem; }
}

/* =========================================================================
   SITE SEARCH  —  desktop expanding field, mobile panel field, results page
   ========================================================================= */

/* --- Desktop: magnifier expands a pill-shaped field (no layout shift) --- */
/* Desktop only — on mobile .header-right-cta stays display:none (see the
   max-width:992px block above); don't let this re-show it and overflow the bar. */
@media (min-width: 993px) {
    .header-right-cta { display: flex; align-items: center; gap: 14px; }
}
.site-search { position: relative; width: 42px; height: 42px; flex: 0 0 42px; }
.site-search__form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-search[data-open="true"] .site-search__form {
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.site-search__input {
    width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--primary);
    transition: width 0.28s ease, padding 0.28s ease;
}
.site-search[data-open="true"] .site-search__input { width: 210px; padding: 11px 4px 11px 18px; }
.site-search__btn {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    padding: 12px 13px;
    cursor: pointer;
    border-radius: 999px;
}
.site-search[data-open="true"] .site-search__btn { color: var(--primary); }
.site-search__btn:hover { color: var(--accent); }

/* --- Mobile: full-width field at the top of the slide-in panel --- */
.mobile-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}
.mobile-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--primary);
    background: transparent;
}
.mobile-search__btn {
    background: var(--accent);
    border: 0;
    color: #fff;
    padding: 0 20px;
    font-size: 16px;
    cursor: pointer;
}

/* --- Results page --- */
.search-results-main { padding: 50px 0 70px; min-height: 60vh; }
.search-head { max-width: 820px; margin: 0 auto 30px; }
.search-head__title { font-size: 30px; color: #1d1c27; margin: 0 0 6px; line-height: 1.2; }
.search-head__term { color: var(--accent-text); }
.search-head__count { color: #777; font-size: 14px; margin: 0 0 20px; }
.search-head__form {
    display: flex;
    border: 2px solid #e3e3e8;
    border-radius: 10px;
    overflow: hidden;
}
.search-head__form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 15px 18px;
    font-family: inherit;
    font-size: 16px;
    color: var(--primary);
}
.search-head__form button {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 0 26px;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-head__form button:hover { background: var(--accent-hover); }

.search-list { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; }
.search-item { padding: 24px 0; border-bottom: 1px solid #ececf0; }
.search-item:first-child { border-top: 1px solid #ececf0; }
.search-item__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.search-item__badge--post { background: #fff0ee; color: var(--accent-text); }
.search-item__badge--page { background: #eef1f6; color: #4a5568; }
.search-item__title { font-size: 21px; margin: 0 0 8px; line-height: 1.3; }
.search-item__title a { color: #1d1c27; text-decoration: none; }
.search-item__title a:hover { color: var(--accent-text); }
.search-item__excerpt { color: #555; font-size: 15px; line-height: 1.7; margin: 0 0 10px; }
.search-mark { background: #fff2a8; color: inherit; padding: 0 2px; border-radius: 2px; }
.search-item__link {
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}
.search-item__link:hover { gap: 11px; }

.search-pagination { max-width: 820px; margin: 34px auto 0; }
.search-pagination .page-numbers {
    display: inline-block;
    padding: 9px 15px;
    margin: 0 3px 6px;
    border: 1px solid #e3e3e8;
    border-radius: 6px;
    text-decoration: none;
    color: #1d1c27;
    font-weight: 600;
}
.search-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent-text); }
.search-pagination .page-numbers:hover { border-color: var(--accent-text); color: var(--accent-text); }
.search-pagination .page-numbers.current:hover { color: #fff; }
.search-pagination .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; }

.search-empty { max-width: 620px; margin: 0 auto; text-align: center; padding: 30px 20px 60px; }
.search-empty__icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #f4f5f8;
    color: #b8bcc7;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.search-empty h2 { font-size: 24px; color: #1d1c27; margin: 0 0 10px; }
.search-empty p { color: #666; font-size: 16px; margin: 0 0 24px; }
.search-empty__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.search-empty__popular { font-size: 14px; color: #888; }
.search-empty__popular span { display: block; margin-bottom: 10px; font-weight: 600; }
.search-empty__popular a { color: var(--accent-text); text-decoration: none; margin: 0 10px; font-weight: 600; }
.search-empty__popular a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .search-head__title { font-size: 23px; }
    .search-head__form button span { display: none; }
    .search-head__form button { padding: 0 18px; }
    .search-item__title { font-size: 19px; }
}

/* Product card titles (h3 for correct heading order) */
.product-card-body h3 { font-size: 1.2rem; margin: 10px 0 12px; color: #1d1c27; line-height: 1.3; }
