/* merriweather-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/merriweather-v33-latin-regular.woff2') format('woff2');
}
/* merriweather-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2');
}
/* poppins-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/poppins-v23-latin-regular.woff2') format('woff2');
}
/* poppins-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/poppins-v23-latin-600.woff2') format('woff2');
}
/* poppins-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/poppins-v23-latin-700.woff2') format('woff2');
}

@font-face {
  font-family: 'MerriweatherFallback';
  size-adjust: 108%;
  ascent-override: 88%;
  descent-override: 28%;
  line-gap-override: 10%;
  src: local('Georgia');
}

:root {
    --primary-blue: #1a3a6b;
    --secondary-blue: #0069d9;
    --accent-gold: #c5a47e;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #5a6268;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
}
*, *::before, *::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.nav-open {
    overflow: hidden;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
h1, h2, h3 {
    font-family: 'Merriweather', 'MerriweatherFallback', serif;
    font-weight: 700;
    color: var(--primary-blue);
}
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.2; color: var(--text-color); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 50px; }
section { padding: 80px 0; }

.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    vertical-align: -0.125em;
    pointer-events: none;
    user-select: none;
}

.header {
    background-color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #dee2e6;
    -webkit-transition: box-shadow 0.3s ease;
    -moz-transition: box-shadow 0.3s ease;
    -o-transition: box-shadow 0.3s ease;
    transition: box-shadow 0.3s ease;
    will-change: box-shadow;
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img {
    height: 50px;
    width: auto;
    display: block;
    max-width: 200px;
}
.nav-menu-container {
    display: flex;
    align-items: center;
    gap: 30px;
}
.nav-menu { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: color 0.3s ease, border-color 0.3s ease;
    -moz-transition: color 0.3s ease, border-color 0.3s ease;
    -o-transition: color 0.3s ease, border-color 0.3s ease;
    transition: color 0.3s ease, border-color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a:focus { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.cta-button {
    background-color: var(--secondary-blue);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -moz-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    -o-transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.cta-button:hover, .cta-button:focus {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    background-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    outline: none;
}
.mobile-nav-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}

#hero {
    padding-top: 80px;
    padding-bottom: 100px;
    background: white;
    display: flex;
    align-items: center;
    min-height: 100vh;
}
body.page-template #hero {
    min-height: auto;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
}
.hero-text { flex: 1 1 50%; }
#hero h1 span { color: var(--primary-blue); }
#hero p { font-size: 1.2rem; color: var(--text-muted); margin: 20px 0 30px; max-width: 500px; }
.hero-cta {
    background-color: var(--secondary-blue);
    color: #ffffff;
    font-size: 1.3rem;
    padding: 15px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    border: none;
    box-shadow: var(--shadow-md);
}
.hero-cta:hover, .hero-cta:focus {
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    background-color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
    outline: none;
}

.hero-form-container {
    flex: 1 1 45%;
    max-width: 450px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #dee2e6;
}
.hero-form-container h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    -webkit-transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -o-transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}
.form-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: var(--secondary-blue);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.form-submit-button:hover {
    background-color: var(--primary-blue);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}
.form-success-message {
    text-align: center;
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 15px;
}

.grid-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    box-shadow: var(--shadow-md);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -o-transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}
.grid-card:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.trust-bar { background-color: #e9ecef; padding: 35px 0; }
.trust-bar .container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px; }
.trust-item {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}
.trust-item .svg-icon { color: var(--accent-gold); font-size: 1.6rem; }

.services-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    -webkit-row-gap: 30px;
    -moz-row-gap: 30px;
    row-gap: 30px;
}
.service-card { border-top: 4px solid var(--accent-gold); }
.service-card .icon { font-size: 3rem; color: var(--primary-blue); margin-bottom: 20px; }
.service-card .icon .svg-icon { width: 1em; height: 1em; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.service-card p.description { color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.service-card ul { list-style: none; text-align: left; }
.service-card ul li { color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: flex-start; }
.service-card ul li .svg-icon { color: var(--accent-gold); margin-right: 10px; flex-shrink: 0; margin-top: 4px; font-size: 1rem; }

.why-us-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    -webkit-row-gap: 30px;
    -moz-row-gap: 30px;
    row-gap: 30px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.feature-item .icon { font-size: 2.5rem; color: var(--primary-blue); flex-shrink: 0; }
.feature-item .icon .svg-icon { width: 1em; height: 1em; }
.feature-item h3 { font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 5px; font-size: 1.2rem; }
.feature-item p { color: var(--text-muted); }

.cta-section {
    background: linear-gradient(rgba(26, 58, 107, 0.9), rgba(26, 58, 107, 0.9)), url('../images/urgent-locksmith-social-share.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
    color: white;
}
.cta-section h2 { color: white; }
.cta-section p { font-size: 1.2rem; max-width: 600px; margin: 15px auto 30px; opacity: 0.9; }
.cta-section .cta-button {
    background-color: var(--accent-gold);
    color: var(--primary-blue);
    font-size: 1.3rem;
    padding: 15px 35px;
}
.cta-section .cta-button:hover { background-color: white; color: var(--primary-blue); }

.testimonials-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    -webkit-column-gap: 30px;
    -moz-column-gap: 30px;
    column-gap: 30px;
    -webkit-row-gap: 30px;
    -moz-row-gap: 30px;
    row-gap: 30px;
}
.testimonial-card { border-left: 4px solid var(--accent-gold); }
.testimonial-card .quote-icon { font-size: 2rem; color: var(--primary-blue); opacity: 0.5; }
.testimonial-card .quote-icon .svg-icon { width: 1em; height: 1em; }
.testimonial-card blockquote { margin: 15px 0; flex-grow: 1; font-style: italic; color: var(--text-muted); }
.testimonial-card figcaption { font-weight: 600; color: var(--text-color); align-self: flex-end; font-style: normal; }

.service-area-intro { text-align: center; max-width: 700px; margin: 0 auto 40px; color: var(--text-muted); font-size: 1.1rem; }
.service-area-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px 40px;
    -webkit-column-gap: 40px;
    -moz-column-gap: 40px;
    column-gap: 40px;
    -webkit-row-gap: 10px;
    -moz-row-gap: 10px;
    row-gap: 10px;
}
.service-area-grid ul { list-style: none; padding: 0; }
.service-area-grid li { font-size: 1.1rem; color: var(--text-color); margin-bottom: 12px; font-weight: 600; display: flex; align-items: center; }
.service-area-grid li .svg-icon { color: var(--accent-gold); margin-right: 10px; font-size: 1.1rem; flex-shrink: 0; }

.site-footer { background-color: var(--primary-blue); color: #ffffff; padding: 60px 0 20px 0; }
.footer-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-grid h3 {
    font-family: 'Merriweather', serif;
    color: var(--accent-gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-align: left;
}
.footer-about p { color: #e9ecef; margin-bottom: 20px; }
.footer-contact-info a { color: white; text-decoration: none; font-weight: bold; font-size: 1.5rem; }
.footer-links ul, .footer-services ul { list-style: none; }
.footer-links li, .footer-services li { margin-bottom: 10px; }
.footer-links a, .footer-services a { color: #e9ecef; text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover, .footer-services a:hover { color: var(--accent-gold); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #3a5b8c; font-size: 0.9rem; color: #e9ecef; }

.floating-call-btn {
    display: flex;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-blue);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 1010;
    text-decoration: none;
    font-size: 1.8rem;
    justify-content: center;
    align-items: center;
    border: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
.floating-call-btn:hover {
    background-color: var(--primary-blue);
    -webkit-transform: scale(1.1) rotate(5deg);
    -moz-transform: scale(1.1) rotate(5deg);
    -ms-transform: scale(1.1) rotate(5deg);
    -o-transform: scale(1.1) rotate(5deg);
    transform: scale(1.1) rotate(5deg);
}
.floating-call-btn .svg-icon { width: 1.2em; height: 1.2em; }

.nav-menu .cta-button-mobile { display: none; }

@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; }
    #hero p { margin-left: auto; margin-right: auto; }
    .hero-form-container { margin-top: 40px; max-width: 500px; width: 100%; }
    .service-area-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 768px) {
    .header { padding: 10px 0; }
    .nav-menu-container { gap: 10px; }
    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0; right: -100%;
        width: 100%;
        height: 100vh;
        padding-top: 80px;
        background-color: #ffffff;
        -webkit-transition: right 0.4s ease-in-out;
        -moz-transition: right 0.4s ease-in-out;
        -o-transition: right 0.4s ease-in-out;
        transition: right 0.4s ease-in-out;
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
    .nav-menu.active { display: flex; right: 0; }
    .nav-menu li { width: 100%; }
    .nav-menu a { display: block; padding: 20px; text-align: center; font-size: 1.3rem; border-bottom: 1px solid #dee2e6; }

    .nav-menu .cta-button-mobile {
        display: block;
        margin: 20px auto;
        width: 80%;
        text-align: center;
    }
    .nav-menu-container > .cta-button-desktop { display: none; }

    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }

    #hero { min-height: auto; padding-top: 60px; padding-bottom: 60px; }
    .footer-grid { grid-template-columns: 1fr; }

    .cta-section .cta-button {
        font-size: 1.1rem;
        padding: 15px 25px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-item {
        gap: 15px;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
    }

    .faq-icon .svg-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-details summary {
        font-size: 1rem;
        padding: 15px;
    }

    .faq-icon {
        width: 35px;
        height: 35px;
    }

    .faq-icon .svg-icon {
        width: 18px;
        height: 18px;
    }

    .service-area-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Pages */
main {
    padding-top: 81px;
}
.page-hero {
    background-color: var(--primary-blue);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    color: white;
    margin-bottom: 10px;
}
.page-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}
.page-content {
    padding: 80px 0;
    background-color: #ffffff;
}
.service-details-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.service-details-content h2 {
    text-align: left;
    margin-bottom: 30px;
}
.service-details-content h2:not(:first-child) {
    margin-top: 50px;
}
.service-details-content h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.service-list {
    list-style: none;
    padding: 0;
}
.service-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}
.service-list li .svg-icon {
    color: var(--accent-gold);
    margin-top: 5px;
    flex-shrink: 0;
}
.service-list strong {
    color: var(--text-color);
}
.service-details-cta {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    text-align: center;
    position: sticky;
    top: 100px;
}
.service-details-cta h3 {
    margin-bottom: 10px;
}
.service-details-cta .cta-button.large {
    padding: 15px 30px;
    font-size: 1.2rem;
    width: 100%;
    margin-top: 15px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.service-details-cta .cta-button.large .svg-icon {
    margin-right: 10px;
}
@media (max-width: 992px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Header Dropdown */
.nav-menu li {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    z-index: 1000;
    border-top: 3px solid var(--primary-blue);
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    display: block;
}
.dropdown-menu li a {
    padding: 12px 20px;
    display: block;
    white-space: nowrap;
    border-bottom: none;
    font-weight: 400;
}
.dropdown-menu li a:hover {
    background-color: var(--light-bg);
}

.faq-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
}
.faq-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.faq-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.faq-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.faq-icon .svg-icon {
    width: 24px;
    height: 24px;
}
.faq-content {
    flex: 1;
}
.faq-details {
    background: white;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}
.faq-details[open] {
    box-shadow: var(--shadow-md);
}
.faq-details summary {
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: var(--border-radius);
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.faq-details summary:hover {
    color: var(--primary-blue);
    background-color: #f8f9fa;
}
.faq-details summary::marker,
.faq-details summary::-webkit-details-marker {
    display: none;
}
.faq-details summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: 300;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}
.faq-details[open] summary::after {
    -webkit-transform: translateY(-50%) rotate(45deg);
    -moz-transform: translateY(-50%) rotate(45deg);
    -ms-transform: translateY(-50%) rotate(45deg);
    -o-transform: translateY(-50%) rotate(45deg);
    transform: translateY(-50%) rotate(45deg);
}
.faq-details p {
    color: var(--text-muted);
    padding: 0 20px 20px 20px;
    margin: 0;
    line-height: 1.7;
}

.emergency-alert-btn {
    display: inline-block;
    background: #dc3545;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.emergency-alert-btn:hover, .emergency-alert-btn:focus {
    transform: translateY(-3px);
    background-color: #c82333;
    box-shadow: var(--shadow-md);
    outline: none;
}
.emergency-alert-btn .svg-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.emergency-feature-box {
    padding: 20px;
    background: var(--light-bg);
    border-left: 4px solid var(--primary-blue);
    border-radius: var(--border-radius);
}
.emergency-feature-box h4 {
    margin-top: 0;
    color: var(--primary-blue);
    font-size: 1.1rem;
}
.emergency-feature-box p {
    margin-bottom: 0;
    line-height: 1.6;
}

.emergency-areas-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin: 20px 0;
    font-weight: 600;
    color: var(--text-color);
}

.emergency-safety-box {
    margin-top: 40px;
    padding: 30px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: var(--border-radius);
}
.emergency-safety-box h3 {
    color: #856404;
    margin-top: 0;
    font-size: 1.3rem;
}
.emergency-safety-box p {
    color: #856404;
    margin-bottom: 0;
    line-height: 1.6;
}

.emergency-response-times {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4fd;
    border-radius: var(--border-radius);
}
.emergency-response-times h4 {
    margin-top: 0;
    color: var(--primary-blue);
    font-size: 1rem;
}
.emergency-response-times ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}
.emergency-response-times li {
    padding: 5px 0;
    color: var(--text-muted);
}

.emergency-cta-button {
    background: #dc3545;
    -webkit-animation: pulse 2s infinite;
    -moz-animation: pulse 2s infinite;
    animation: pulse 2s infinite;
}
.emergency-cta-button:hover {
    animation: none;
}

.emergency-features-grid {
    display: -ms-grid;
    display: grid;
    gap: 20px;
    margin: 30px 0;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.emergency-steps {
    line-height: 1.8;
    font-size: 1.05rem;
    padding-left: 20px;
}

.emergency-steps li {
    margin-bottom: 15px;
}

.emergency-urgent-text {
    font-size: 1.1rem;
    color: #dc3545;
    font-weight: 600;
    margin: 10px 0;
}

.emergency-availability {
    margin-top: 20px;
    text-align: center;
}

.emergency-availability p {
    font-size: 0.9rem;
    color: #6c757d;
}

.cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button-white {
    background: white;
    color: var(--primary-blue);
}

.cta-button-white:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
}

.cta-button-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

@-webkit-keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
@-moz-keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@media (max-width: 768px) {
    .emergency-areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .emergency-safety-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .emergency-areas-grid {
        grid-template-columns: 1fr;
    }
    .emergency-features-grid {
        grid-template-columns: 1fr;
    }
    .cta-buttons-group {
        flex-direction: column;
        width: 100%;
    }
    .cta-buttons-group .cta-button {
        width: 100%;
        text-align: center;
    }
}

.faq-page-content {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-page-content h2 {
    text-align: left;
    margin-top: 50px;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 10px;
}

.faq-page-content h2:first-of-type {
    margin-top: 30px;
}

.faq-page-content .cta-section {
    padding: 40px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
}

.faq-page-content .cta-section h2 {
    border: none;
    color: white;
    text-align: center;
}

/* 404 Error Page */
.error-404-content {
    text-align: center;
    padding: 40px 20px;
}

.error-404-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-muted);
}

.error-404-links {
    margin: 40px 0;
}

.error-404-links h3 {
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.error-404-buttons {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.error-404-buttons .cta-button {
    display: block;
    text-align: center;
    width: 100%;
}

.error-404-cta {
    margin-top: 50px;
    padding: 30px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.error-404-cta h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.error-404-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    main {
        padding-top: 71px;
    }

    .error-404-buttons {
        grid-template-columns: 1fr;
    }

    .error-404-cta {
        padding: 20px;
    }
    .has-dropdown > a {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    .has-dropdown > a::after {
        content: '▼';
        font-size: 0.7em;
        display: inline-block;
        margin-left: 8px;
        color: var(--accent-gold);
        transition: transform 0.3s ease;
    }
    .has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    .dropdown-menu {
        position: static;
        display: none;
        background-color: #f8f9fa;
        box-shadow: none;
        padding: 0;
        border: none;
        width: 100%;
        border-top: none;
        min-width: auto;
    }
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown-menu li a {
        font-size: 1.1rem;
        padding: 15px 20px 15px 40px;
        font-weight: 500;
        border-bottom: 1px solid #e9ecef;
        background-color: #f8f9fa;
    }
    .dropdown-menu li a:hover {
        background-color: #e9ecef;
        color: var(--primary-blue);
    }
}

/* Final performance optimization for scroll animations */
.grid-card, .feature-item, .testimonial-card {
    will-change: transform, opacity;
}