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

/* CSS Variables for Brand Colors */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #0f4c75;
    --accent-color: #3282b8;
    --light-accent: #bbe1fa;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

/* Header & Navigation */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 10px 0;
    font-size: 14px;
}

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

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

.top-contact a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.top-contact a:hover {
    color: var(--light-accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 16px;
}

.social-links a:hover {
    color: var(--light-accent);
    transform: translateY(-2px);
}

header {
    background-color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.emergency-btn {
    background-color: var(--success-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.emergency-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-highlight {
    color: var(--light-accent);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    font-size: 40px;
    color: var(--light-accent);
}

.badge span {
    font-size: 14px;
}

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

.btn {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--success-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Emergency Banner */
.emergency-banner {
    background-color: var(--warning-color);
    color: var(--text-dark);
    padding: 20px 0;
    text-align: center;
    font-weight: 600;
}

.emergency-banner a {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Section Styles */
section {
    padding: 60px 0;
}

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

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 50px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

.service-card .btn {
    padding: 10px 25px;
    font-size: 14px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 60px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
}

/* Service Areas */
.service-areas {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
}

.service-areas h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.area-tag {
    background-color: var(--accent-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 40px;
    color: var(--light-accent);
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 20px;
    padding-top: 30px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.rating {
    color: var(--warning-color);
    font-size: 18px;
    margin-bottom: 10px;
}

/* Service Page Content */
.service-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
}

.service-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.content-main h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.content-main h3 {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 25px 0 15px;
}

.content-main p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-main ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content-main ul li {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.8;
}

.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

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

.sidebar-widget h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-widget ul li a:hover {
    color: var(--accent-color);
}

.contact-widget {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.contact-widget h3 {
    color: var(--text-light);
}

.contact-widget p {
    margin-bottom: 15px;
}

.contact-widget .btn {
    width: 100%;
    text-align: center;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

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

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

.contact-info-box {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.contact-info-item {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.contact-info-item i {
    font-size: 24px;
    color: var(--light-accent);
    margin-top: 5px;
}

.contact-info-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-info-item p {
    font-size: 14px;
    opacity: 0.9;
}

/* Map */
.map-container {
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

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

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: var(--bg-light);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.blog-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-card h3 a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    color: #666;
    margin-bottom: 15px;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.about-image img {
    width: 100%;
    height: auto;
}

.about-text h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cert-badge {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.cert-badge i {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.cert-badge h4 {
    color: var(--primary-color);
    font-size: 16px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-accent);
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

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

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

.footer-section ul li a {
    color: var(--text-light);
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: var(--light-accent);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav ul li a {
        display: block;
        padding: 15px 0;
        color: var(--text-light);
    }
    
    .emergency-btn {
        margin-top: 20px;
        display: block;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .service-content,
    .contact-container,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}