/* ==============================
   Locksmith Ninja Perth - Stylesheet
   ============================== */

:root {
    --primary: #d4001a;
    --primary-dark: #a30014;
    --secondary: #1a1a1a;
    --dark: #0d0d0d;
    --light: #f8f8f8;
    --gray: #666;
    --light-gray: #e8e8e8;
    --white: #ffffff;
    --yellow: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: var(--primary); transition: all .3s; }
a:hover { color: var(--primary-dark); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary);
    margin-bottom: 15px;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 15px; color: #555; }

/* ===== Top Bar ===== */
.top-bar {
    background: var(--secondary);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar a { color: #fff; margin-right: 18px; }
.top-bar a:hover { color: var(--yellow); }
.top-bar .socials a { margin-right: 10px; font-size: 15px; }
.top-bar i { margin-right: 5px; color: var(--primary); }

/* ===== Header / Navigation ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}
.logo img { max-height: 65px; }
.nav-menu {
    list-style: none;
    display: flex;
    gap: 5px;
}
.nav-menu li { position: relative; }
.nav-menu > li > a {
    color: var(--secondary);
    font-weight: 600;
    padding: 10px 14px;
    display: block;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--primary); }

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
    list-style: none;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    border-top: 3px solid var(--primary);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    padding: 10px 18px;
    display: block;
    color: var(--secondary);
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background: var(--light); color: var(--primary); padding-left: 24px; }

.call-btn {
    background: var(--primary);
    color: #fff !important;
    padding: 12px 22px !important;
    border-radius: 4px;
    font-weight: 700;
}
.call-btn:hover { background: var(--primary-dark); color:#fff !important; }

.menu-toggle { display: none; cursor: pointer; font-size: 26px; color: var(--secondary); background: none; border: none; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
                url('https://images.unsplash.com/photo-1582139329536-e7284fece509?w=1600&q=80') center/cover no-repeat;
    color: #fff;
    padding: 110px 0;
    text-align: center;
}
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 15px; }
.hero p { color: #eee; font-size: 1.15rem; max-width: 800px; margin: 0 auto 30px; }
.hero .btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: .5px;
    transition: all .3s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--secondary); }

/* ===== Page Banner ===== */
.page-banner {
    background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)),
                url('https://images.unsplash.com/photo-1558002038-1055907df827?w=1600&q=80') center/cover;
    color: #fff;
    padding: 80px 0;
    text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.breadcrumb { color: #ddd; font-size: 14px; }
.breadcrumb a { color: var(--yellow); }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #ccc; }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title .subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}
.section-title h2 { margin-bottom: 15px; }
.section-title p { max-width: 700px; margin: 0 auto; }

/* ===== About Intro ===== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.intro-grid img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.intro-grid .subtitle {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
}
.feature-list { list-style: none; margin-top: 20px; }
.feature-list li {
    padding: 8px 0 8px 32px;
    position: relative;
    color: #444;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #fff;
    background: var(--primary);
    width: 22px; height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 13px;
    font-weight: 700;
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    transition: all .35s;
    position: relative;
    border-bottom: 4px solid var(--primary);
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,.15);
}
.service-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.service-card .content { padding: 25px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.service-card h3 a { color: var(--secondary); }
.service-card h3 a:hover { color: var(--primary); }
.service-card .read-more {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 8px;
}
.service-card .read-more::after { content: " →"; }

/* ===== Why Choose Us ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.why-card {
    background: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    transition: all .3s;
}
.why-card:hover { transform: translateY(-5px); }
.why-icon {
    width: 70px; height: 70px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 18px;
}
.why-card h3 { font-size: 1.15rem; }

/* ===== CTA Bar ===== */
.cta-bar {
    background: var(--primary);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}
.cta-bar h2 { color: #fff; margin-bottom: 12px; }
.cta-bar p { color: #fff; margin-bottom: 22px; }
.cta-bar .btn-outline { border-color: #fff; }
.cta-bar .btn-outline:hover { background: #fff; color: var(--primary); }

/* ===== Testimonials ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    position: relative;
}
.testimonial::before {
    content: "❝";
    font-size: 60px;
    color: var(--primary);
    opacity: .2;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}
.testimonial .stars { color: var(--yellow); margin-bottom: 10px; }
.testimonial h4 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.testimonial p { font-style: italic; }
.testimonial .author { font-weight: 700; color: var(--secondary); font-style: normal; margin-top: 12px; }

/* ===== FAQ ===== */
.faq-item {
    background: #fff;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
}
.faq-question {
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: all .3s;
}
.faq-question:hover { background: var(--light); color: var(--primary); }
.faq-question.active { background: var(--primary); color: #fff; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding: 0 25px;
}
.faq-answer.open { max-height: 500px; padding: 18px 25px; }
.faq-icon { transition: transform .3s; }
.faq-question.active .faq-icon { transform: rotate(45deg); }

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.06);
    margin-bottom: 20px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.contact-info-card .icon {
    background: var(--primary);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}
.contact-info-card h4 { margin-bottom: 5px; color: var(--primary); }
.contact-form {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,.1);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--secondary); font-size: 14px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: inherit;
    font-size: 15px;
    transition: all .3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,0,26,.1);
}
.map-container { border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,.1); }
.map-container iframe { width: 100%; height: 450px; border: 0; display: block; }

/* ===== Service Page ===== */
.service-content-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.service-main img { border-radius: 8px; margin-bottom: 25px; }
.service-main h2 { margin-top: 30px; }
.service-main h3 { margin-top: 25px; color: var(--primary); }
.service-main ul { margin: 15px 0 15px 25px; }
.service-main ul li { margin-bottom: 8px; color: #444; }

.sidebar-widget {
    background: var(--light);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}
.sidebar-widget h3 {
    font-size: 1.2rem;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    margin-bottom: 15px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li { border-bottom: 1px solid #ddd; }
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
    padding: 12px 0 12px 25px;
    display: block;
    color: var(--secondary);
    font-weight: 600;
    position: relative;
}
.sidebar-widget ul li a::before {
    content: "▸";
    color: var(--primary);
    position: absolute;
    left: 0;
}
.sidebar-widget ul li a:hover { color: var(--primary); padding-left: 30px; }
.sidebar-cta {
    background: var(--primary);
    color: #fff;
    padding: 30px 25px;
    border-radius: 8px;
    text-align: center;
}
.sidebar-cta h3 { color: #fff; }
.sidebar-cta .phone { font-size: 1.5rem; font-weight: 700; display: block; color: #fff; margin: 10px 0; }
.sidebar-cta .btn { background: #fff; color: var(--primary); margin-top: 10px; }

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: #ccc;
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 35px;
    margin-bottom: 40px;
}
.footer h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.footer p { color: #aaa; font-size: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a { color: #aaa; }
.footer ul li a:hover { color: var(--primary); padding-left: 5px; }
.footer img.footer-logo { background:#fff; padding: 10px; border-radius: 5px; max-height: 70px; margin-bottom: 15px; }
.footer .contact-info i { color: var(--primary); margin-right: 8px; width: 18px; }
.footer-social a {
    width: 36px; height: 36px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    transition: all .3s;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ===== Floating Call Button ===== */
.float-call {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary);
    color: #fff;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(212,0,26,.5);
    z-index: 999;
    font-size: 24px;
    animation: pulse 2s infinite;
}
.float-call:hover { color: #fff; background: var(--primary-dark); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(212,0,26,.5); }
    70% { box-shadow: 0 0 0 20px rgba(212,0,26,0); }
    100% { box-shadow: 0 0 0 0 rgba(212,0,26,0); }
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .services-grid, .why-grid, .testimonials-grid { grid-template-columns: repeat(2,1fr); }
    .intro-grid, .contact-grid, .service-content-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 70px 0; }
    .hero h1 { font-size: 2.2rem; }
    .section { padding: 55px 0; }
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0,0,0,.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s;
    }
    .nav-menu.open { max-height: 800px; padding: 10px 0; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { padding: 12px 20px; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light);
        padding-left: 15px;
    }
    .services-grid, .why-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .top-bar .container { justify-content: center; text-align: center; }
    .top-bar a { margin: 3px 8px; font-size: 13px; }
}
