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

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

:root {
    --primary: #c8102e;
    --primary-dark: #9a0c23;
    --secondary: #1a1a1a;
    --dark: #0d0d0d;
    --light: #f8f8f8;
    --gray: #666;
    --light-gray: #e8e8e8;
    --white: #ffffff;
    --yellow: #ffc107;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

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

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

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 15px;
    color: #555;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ============ TOP BAR ============ */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-info {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.top-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-info i {
    color: var(--primary);
}

.top-info a {
    color: var(--white);
}

.top-info a:hover {
    color: var(--primary);
}

.top-social a {
    color: var(--white);
    margin-left: 12px;
    font-size: 1rem;
}

.top-social a:hover {
    color: var(--primary);
}

/* ============ HEADER ============ */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo img {
    max-height: 70px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu > li > a {
    color: var(--secondary);
    font-weight: 600;
    padding: 10px 15px;
    display: block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary);
}

.nav-menu .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .dropdown li a {
    color: var(--secondary);
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-menu .dropdown li a:hover {
    background: #f9f9f9;
    color: var(--primary);
    border-left-color: var(--primary);
    padding-left: 25px;
}

.call-btn {
    background: var(--primary);
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.call-btn:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--secondary);
    cursor: pointer;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, rgba(13,13,13,0.85) 0%, rgba(200,16,46,0.75) 100%),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-size: 3.4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero .subtitle {
    color: #fff;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200,16,46,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ============ BADGES BAR ============ */
.badges-bar {
    background: var(--secondary);
    padding: 30px 0;
    color: var(--white);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.badge-item i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.badge-item h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 5px;
}

.badge-item p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 0;
}

/* ============ SECTIONS ============ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title span {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
}

/* ============ ABOUT SNIPPET ============ */
.about-snippet {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-content h2 {
    font-size: 2.3rem;
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin: 25px 0;
}

.feature-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #444;
}

.feature-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 8px;
}

/* ============ SERVICES ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--primary);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 30px auto 20px;
}

.service-card-body {
    padding: 0 30px 30px;
    text-align: center;
}

.service-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card-body p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.service-link:hover {
    gap: 12px;
}

/* ============ WHY CHOOSE US ============ */
.why-us {
    background: linear-gradient(135deg, var(--secondary) 0%, #2a2a2a 100%);
    color: var(--white);
    position: relative;
}

.why-us .section-title h2 {
    color: var(--white);
}

.why-us .section-title p {
    color: #ccc;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-item {
    background: rgba(255,255,255,0.05);
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.why-item:hover {
    background: rgba(200,16,46,0.15);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.why-item i {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.why-item h4 {
    color: var(--white);
    margin-bottom: 10px;
}

.why-item p {
    color: #ccc;
    font-size: 0.95rem;
    margin: 0;
}

/* ============ CTA STRIP ============ */
.cta-strip {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.cta-strip h2 {
    color: var(--white);
    margin-bottom: 15px;
}

.cta-strip p {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.cta-strip .btn {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.cta-strip .btn:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}

/* ============ TESTIMONIALS ============ */
.testimonials {
    background: var(--light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

.stars {
    color: var(--yellow);
    margin-bottom: 15px;
    font-size: 1rem;
}

.testimonial-card p {
    font-style: italic;
    color: #444;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    margin: 0;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.05rem;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f9f9f9;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    color: #555;
    margin: 0;
}

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(200,16,46,0.78) 100%),
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=80') center/cover;
    color: var(--white);
    padding: 90px 0 70px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 10px;
}

.breadcrumb {
    color: #ddd;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    color: var(--yellow);
}

/* ============ CONTENT PAGE ============ */
.content-section {
    padding: 70px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.content-main h2 {
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 18px;
    color: var(--secondary);
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main h3 {
    font-size: 1.4rem;
    margin-top: 25px;
    color: var(--primary);
}

.content-main p {
    margin-bottom: 18px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.content-main ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.content-main ul li {
    padding: 8px 0 8px 30px;
    position: relative;
}

.content-main ul li::before {
    content: "\f138";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 10px;
}

.content-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 25px 0;
}

/* ============ SIDEBAR ============ */
.sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.sidebar-widget h4 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: var(--secondary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-services {
    list-style: none;
}

.sidebar-services li {
    margin-bottom: 8px;
}

.sidebar-services a {
    display: block;
    padding: 12px 15px;
    background: var(--light);
    color: var(--secondary);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.sidebar-services a:hover,
.sidebar-services a.active {
    background: var(--primary);
    color: var(--white);
    padding-left: 25px;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    padding: 35px 25px;
}

.sidebar-cta h4 {
    color: var(--white);
    border: none;
    margin-bottom: 10px;
}

.sidebar-cta p {
    color: #fff;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.sidebar-cta .phone-large {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.sidebar-cta .btn {
    background: var(--white);
    color: var(--primary);
    width: 100%;
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info-box {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--light-gray);
}

.contact-info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-info-item p, .contact-info-item a {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

.contact-info-item a:hover {
    color: var(--primary);
}

/* ============ CONTACT FORM ============ */
.contact-form {
    background: var(--white);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    line-height: 0;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--secondary);
    color: #ccc;
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-col p {
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-logo {
    background: var(--white);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo img {
    max-height: 60px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #b0b0b0;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 5px;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: #b0b0b0;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #0a0a0a;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary);
}

/* ============ FLOATING CALL ============ */
.floating-call {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px rgba(200,16,46,0.5);
    z-index: 999;
    animation: pulse 2s infinite;
}

.floating-call:hover {
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(200,16,46,0.6); }
    70% { box-shadow: 0 0 0 18px rgba(200,16,46,0); }
    100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    .hero h1 { font-size: 2.4rem; }
    .badges-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .services-grid, .why-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .contact-grid, .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        box-shadow: var(--shadow);
        padding: 15px 0;
    }
    .nav-menu.active { display: flex; }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { padding: 12px 25px; }
    .nav-menu .dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f9f9f9;
        padding: 0;
        display: none;
    }
    .nav-menu li.open .dropdown { display: block; }
    .top-bar-content { justify-content: center; text-align: center; }
    .top-info { justify-content: center; gap: 15px; font-size: 0.85rem; }
    .hero { padding: 70px 0; }
    .hero h1 { font-size: 2rem; }
    .hero .subtitle { font-size: 1rem; }
    section { padding: 60px 0; }
    .section-title h2 { font-size: 1.8rem; }
    .services-grid, .why-grid, .testimonials-grid, .badges-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    h2 { font-size: 1.8rem; }
    .page-header { padding: 60px 0 50px; }
    .page-header h1 { font-size: 2.2rem; }
}
