/* ============================================================
   RAPID LOCKSMITH LONDON — style.css
   Mobile-first. Black / white / red. No frameworks.
   Edit the variables at the top to change colours site-wide.
   ============================================================ */

/* --- Variables --- */
:root {
    --red:       #B00000;
    --red-dark:  #8a0000;
    --black:     #111111;
    --dark-grey: #333333;
    --mid-grey:  #666666;
    --light-grey:#f5f5f5;
    --white:     #ffffff;
    --border:    #dddddd;
    --font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --max-width: 900px;
    --radius:    4px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    padding-bottom: 70px; /* space for sticky call bar */
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Typography --- */
h1 { font-size: 1.65rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.3rem;  line-height: 1.3; font-weight: 700; margin-bottom: 0.6rem; }
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
p  { margin-bottom: 0.9rem; font-size: 0.97rem; color: var(--dark-grey); }
p:last-child { margin-bottom: 0; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}
.btn:hover { background: var(--red-dark); text-decoration: none; color: var(--white); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 18px 28px; font-size: 1.1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--black);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.site-logo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    line-height: 1.2;
}
.site-logo span { color: var(--red); }
.header-phone {
    background: var(--red);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}
.header-phone:hover { background: var(--red-dark); text-decoration: none; color: var(--white); }

/* --- Desktop nav (hidden on mobile) --- */
.site-nav { display: none; }

@media (min-width: 768px) {
    .site-logo { font-size: 1.1rem; }
    .header-phone { font-size: 1rem; padding: 10px 18px; }
    .site-nav {
        display: flex;
        gap: 0;
        align-items: center;
    }
    .header-inner {
        flex-wrap: wrap;
        gap: 8px;
    }
    .nav-item { position: relative; }
    .nav-link {
        display: block;
        color: var(--white);
        padding: 8px 14px;
        font-size: 0.88rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }
    .nav-link:hover { color: var(--red); text-decoration: none; }
    /* Dropdown */
    .nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--black);
        min-width: 220px;
        border-top: 2px solid var(--red);
        z-index: 200;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }
    .nav-item:hover .nav-dropdown { display: block; }
    .nav-dropdown a {
        display: block;
        color: var(--white);
        padding: 10px 16px;
        font-size: 0.85rem;
        border-bottom: 1px solid #222;
        text-decoration: none;
    }
    .nav-dropdown a:hover { background: var(--red); color: var(--white); }
}

/* ============================================================
   STICKY MOBILE CALL BAR
   ============================================================ */
.sticky-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--red);
    z-index: 999;
    display: block; /* always visible on mobile */
}
.sticky-call-bar a {
    display: block;
    text-align: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px;
    min-height: 54px;
    text-decoration: none;
    letter-spacing: 0.02em;
}
/* Hide sticky bar on large screens — header phone button is enough */
@media (min-width: 900px) {
    .sticky-call-bar { display: none; }
    body { padding-bottom: 0; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: var(--black);
    color: var(--white);
    padding: 40px 16px;
    text-align: center;
}
.hero h1 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.8rem;
}
.hero .hero-sub {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.hero .btn { margin-bottom: 12px; width: 100%; max-width: 360px; }
.hero-sub-note {
    color: #aaaaaa;
    font-size: 0.82rem;
    margin-top: 8px;
}

@media (min-width: 600px) {
    .hero { padding: 60px 16px; }
    .hero h1 { font-size: 2.2rem; }
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
    background: var(--red);
    color: var(--white);
    padding: 14px 16px;
    text-align: center;
}
.trust-strip ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.trust-strip li {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--white);
}
.trust-strip li::before { content: '✓  '; }

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section { padding: 40px 16px; }
.section-alt { background: var(--light-grey); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: #cccccc; }

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}
.section-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 28px;
    color: var(--mid-grey);
    font-size: 0.95rem;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 14px;
    text-decoration: none;
    color: var(--black);
    display: block;
    border-left: 3px solid var(--red);
}
.service-card:hover { background: var(--light-grey); text-decoration: none; color: var(--black); }
.service-card h3 { font-size: 0.9rem; color: var(--black); margin-bottom: 4px; }
.service-card p { font-size: 0.8rem; color: var(--mid-grey); margin: 0; }

@media (min-width: 600px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .service-card h3 { font-size: 0.95rem; }
}

/* ============================================================
   WHY US / BULLETS
   ============================================================ */
.why-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.why-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.why-icon {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.why-text strong { display: block; font-size: 0.95rem; margin-bottom: 2px; }
.why-text p { font-size: 0.88rem; color: var(--mid-grey); margin: 0; }

/* ============================================================
   STEPS (how it works)
   ============================================================ */
.steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.step-num {
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.step-body strong { display: block; font-size: 0.97rem; margin-bottom: 4px; }
.step-body p { font-size: 0.88rem; color: var(--mid-grey); margin: 0; }

/* ============================================================
   AREAS GRID (pill links)
   ============================================================ */
.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}
.area-pill {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 600;
}
.area-pill:hover { background: var(--red); color: var(--white); border-color: var(--red); text-decoration: none; }

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.cta-section {
    background: var(--red);
    color: var(--white);
    padding: 40px 16px;
    text-align: center;
}
.cta-section h2 { color: var(--white); font-size: 1.4rem; margin-bottom: 10px; }
.cta-section p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.cta-section .btn {
    background: var(--white);
    color: var(--red);
    font-size: 1.05rem;
    max-width: 340px;
    margin: 0 auto;
    display: block;
}
.cta-section .btn:hover { background: var(--black); color: var(--white); }

/* ============================================================
   PAGE TEMPLATE (service + area pages)
   ============================================================ */
.page-hero {
    background: var(--black);
    color: var(--white);
    padding: 32px 16px;
}
.page-hero h1 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.page-hero p { color: #cccccc; font-size: 0.95rem; margin-bottom: 20px; }
.page-hero .btn { max-width: 300px; }
.breadcrumb {
    font-size: 0.82rem;
    color: #888888;
    margin-bottom: 14px;
}
.breadcrumb a { color: #aaaaaa; }
.breadcrumb a:hover { color: var(--white); }

.page-body { padding: 32px 16px; max-width: var(--max-width); margin: 0 auto; }
.page-section { margin-bottom: 32px; }
.page-section h2 {
    font-size: 1.2rem;
    border-left: 3px solid var(--red);
    padding-left: 12px;
    margin-bottom: 12px;
}
.page-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 8px;
}
.page-section ul li {
    font-size: 0.93rem;
    color: var(--dark-grey);
    margin-bottom: 6px;
}

/* Scenario blocks */
.scenario { margin-bottom: 18px; }
.scenario strong {
    display: block;
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 4px;
}
.scenario strong::before { content: '▸  '; color: var(--red); }
.scenario p { font-size: 0.9rem; color: var(--mid-grey); margin: 0; }

/* Inline CTA block */
.inline-cta {
    background: var(--black);
    color: var(--white);
    padding: 20px 16px;
    border-radius: var(--radius);
    text-align: center;
    margin: 28px 0;
}
.inline-cta p { color: #cccccc; font-size: 0.9rem; margin-bottom: 14px; }
.inline-cta .btn { max-width: 300px; margin: 0 auto; display: block; }

/* Nearby areas (area pages) */
.nearby-section { margin-top: 28px; }
.nearby-section h2 { font-size: 1.1rem; margin-bottom: 12px; }
.nearby-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nearby-pills a {
    background: var(--light-grey);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 5px 14px;
    font-size: 0.82rem;
    color: var(--dark-grey);
    text-decoration: none;
}
.nearby-pills a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* Postcodes block */
.postcodes-block {
    background: var(--light-grey);
    border-left: 3px solid var(--red);
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.postcodes-block strong { font-size: 0.88rem; color: var(--mid-grey); display: block; margin-bottom: 4px; }
.postcodes-block p { font-size: 0.9rem; margin: 0; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid { display: flex; flex-direction: column; gap: 28px; margin-top: 24px; }
.contact-detail { display: flex; flex-direction: column; gap: 14px; }
.contact-item strong { display: block; font-size: 0.8rem; color: var(--mid-grey); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-item a, .contact-item p { font-size: 1rem; font-weight: 600; color: var(--black); margin: 0; }
.contact-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 5px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 0.95rem;
    font-family: var(--font);
    margin-bottom: 14px;
    background: var(--white);
    color: var(--black);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--red); outline: none; }
.contact-form textarea { min-height: 90px; resize: vertical; }

@media (min-width: 700px) {
    .contact-grid { flex-direction: row; }
    .contact-detail { flex: 0 0 280px; }
    .contact-form { flex: 1; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-list { margin-top: 20px; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
    padding: 14px 0;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after { content: '+'; color: var(--red); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '-'; }
.faq-answer { padding: 4px 0 16px; font-size: 0.92rem; color: var(--dark-grey); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--black);
    color: #aaaaaa;
    padding: 40px 16px 24px;
    font-size: 0.85rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: var(--max-width);
    margin: 0 auto 28px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.88rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col ul a { color: #aaaaaa; text-decoration: none; font-size: 0.85rem; }
.footer-col ul a:hover { color: var(--white); }
.footer-col p { color: #aaaaaa; font-size: 0.85rem; line-height: 1.7; margin: 0; }
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 0.82rem;
    color: #666;
    max-width: var(--max-width);
    margin: 0 auto;
}
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--white); }

@media (min-width: 600px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.not-found {
    text-align: center;
    padding: 80px 16px;
    max-width: 500px;
    margin: 0 auto;
}
.not-found h1 { font-size: 4rem; color: var(--red); margin-bottom: 8px; }
.not-found h2 { margin-bottom: 16px; }
.not-found p { margin-bottom: 24px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
