/*
Theme Name: Top Locksmith CA
Theme URI: https://toplocksmithca.com
Description: Professional locksmith services theme
Author: Top Locksmith CA
Version: 1.0
*/

:root {
    --gold: #c5a047;
    --gold-dark: #a8872e;
    --black: #111111;
    --dark: #1a1a1a;
    --white: #ffffff;
    --light-gray: #f8f8f8;
    --gray: #666666;
    --font: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--black);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

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

/* TOP BAR */
.top-bar {
    background: var(--black);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar a { color: var(--gold); }
.top-bar a:hover { color: var(--white); }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; }

/* HEADER */
.site-header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo svg { height: 50px; }
.main-nav { display: flex; gap: 30px; align-items: center; }
.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--black);
    position: relative;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}
.main-nav a:hover::after { width: 100%; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
}
.header-phone:hover { background: var(--gold-dark); color: var(--white); }

/* HAMBURGER */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 5px; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--black); border-radius: 2px; transition: 0.3s; }

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23c5a04710"/></svg>') repeat;
    opacity: 0.3;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-block;
    background: rgba(197,160,71,0.15);
    color: var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(197,160,71,0.3);
}
.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 20px;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(197,160,71,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #333; }

/* SECTIONS */
section { padding: 100px 0; }
.section-badge {
    display: inline-block;
    background: rgba(197,160,71,0.1);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.service-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--gold);
}
.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(197,160,71,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--gray); font-size: 15px; }

/* WHY CHOOSE US */
.why-section { background: var(--light-gray); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.why-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.why-card .icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.why-card h3 { font-size: 20px; margin-bottom: 10px; }
.why-card p { color: var(--gray); font-size: 15px; }

/* PROCESS */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.process-step {
    text-align: center;
    position: relative;
}
.process-number {
    width: 80px;
    height: 80px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    margin: 0 auto 20px;
}
.process-step h3 { font-size: 20px; margin-bottom: 8px; }
.process-step p { color: var(--gray); font-size: 15px; }

/* AREAS PREVIEW */
.areas-preview { background: var(--black); color: var(--white); }
.areas-preview .section-subtitle { color: #999; }
.areas-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
    justify-content: center;
}
.area-tag {
    background: rgba(255,255,255,0.08);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.area-tag:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 40px 30px;
}
.stars { color: var(--gold); font-size: 20px; margin-bottom: 15px; }
.testimonial-card blockquote {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.8;
    font-style: italic;
}
.testimonial-author { font-weight: 700; font-size: 15px; }
.testimonial-location { color: var(--gray); font-size: 13px; }

/* FAQ */
.faq-list { max-width: 800px; margin: 60px auto 0; }
.faq-item {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: var(--white);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font);
}
.faq-question:hover { color: var(--gold); }
.faq-question::after { content: '+'; font-size: 24px; color: var(--gold); }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer {
    display: none;
    padding: 0 25px 20px;
    color: var(--gray);
    line-height: 1.8;
}
.faq-item.active .faq-answer { display: block; }

/* STATS */
.stats-bar {
    background: var(--gold);
    padding: 60px 0;
    color: var(--white);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-number { font-size: 48px; font-weight: 800; margin-bottom: 5px; }
.stat-label { font-size: 15px; opacity: 0.9; }

/* CTA */
.emergency-cta {
    background: linear-gradient(135deg, var(--black) 0%, #222 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}
.emergency-cta h2 { font-size: 42px; margin-bottom: 15px; }
.emergency-cta h2 span { color: var(--gold); }
.emergency-cta p { color: #aaa; font-size: 18px; margin-bottom: 30px; }
.cta-phone {
    font-size: 36px;
    font-weight: 800;
    color: var(--gold);
    display: block;
    margin-bottom: 30px;
}

/* PAGE HERO */
.page-hero {
    background: linear-gradient(135deg, var(--black) 0%, #2a2a2a 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.page-hero h1 { font-size: 48px; font-weight: 800; margin-bottom: 15px; }
.page-hero h1 span { color: var(--gold); }
.page-hero p { color: #aaa; font-size: 18px; }

/* SERVICE AREAS PAGE */
.areas-page { padding: 80px 0; }
.region-section { margin-bottom: 50px; }
.region-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--gold);
    display: inline-block;
}
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.cities-grid li {
    padding: 8px 0;
    color: var(--gray);
    position: relative;
    padding-left: 15px;
}
.cities-grid li::before {
    content: '✓';
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* ABOUT PAGE */
.about-section { padding: 80px 0; }
.about-section:nth-child(even) { background: var(--light-gray); }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { font-size: 32px; margin-bottom: 20px; color: var(--black); }
.about-content p { color: var(--gray); margin-bottom: 20px; font-size: 17px; line-height: 1.9; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.value-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.value-card .icon { font-size: 40px; margin-bottom: 15px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--gray); font-size: 14px; }

/* CONTACT PAGE */
.contact-section { padding: 80px 0; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}
.contact-info-card {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.contact-info-card .icon { font-size: 28px; color: var(--gold); }
.contact-info-card h3 { margin-bottom: 5px; }
.contact-info-card p { color: var(--gray); font-size: 15px; }
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 15px;
    margin-bottom: 15px;
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); outline: none; }
.contact-form textarea { min-height: 150px; resize: vertical; }

/* BLOG */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.blog-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--black), #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 48px;
}
.blog-card-content { padding: 25px; }
.blog-card-content h3 { font-size: 20px; margin-bottom: 10px; }
.blog-card-content p { color: var(--gray); font-size: 15px; margin-bottom: 15px; }
.read-more { color: var(--gold); font-weight: 600; font-size: 14px; }

/* FOOTER */
.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: var(--gold);
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-col p { color: #999; font-size: 14px; line-height: 1.8; }
.footer-col a { color: #999; font-size: 14px; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

/* STICKY PHONE */
.sticky-phone {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: var(--gold);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(197,160,71,0.4);
    transition: all 0.3s;
    text-decoration: none;
}
.sticky-phone:hover { background: var(--gold-dark); transform: translateY(-3px); color: var(--white); }
.sticky-phone .phone-icon { font-size: 20px; }

/* SINGLE POST */
.single-post-content { max-width: 800px; margin: 0 auto; padding: 80px 20px; }
.single-post-content h1 { font-size: 36px; margin-bottom: 15px; }
.single-post-content .post-meta { color: var(--gray); margin-bottom: 30px; }
.single-post-content p { margin-bottom: 20px; color: #444; }
.single-post-content h2 { font-size: 28px; margin: 40px 0 15px; }
.single-post-content h3 { font-size: 22px; margin: 30px 0 10px; }
.single-post-content ul, .single-post-content ol { margin: 20px 0 20px 30px; color: #444; }
.single-post-content li { margin-bottom: 8px; }

/* MOBILE */
@media (max-width: 768px) {
    .top-bar .container { justify-content: center; text-align: center; }
    .top-bar-right { display: none; }
    .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
    .main-nav.active { display: flex; }
    .hamburger { display: flex; }
    .header-phone span { display: none; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .section-title { font-size: 28px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 32px; }
    .sticky-phone { bottom: 0; right: 0; left: 0; border-radius: 0; justify-content: center; font-size: 18px; padding: 18px; }
    .site-footer { padding-bottom: 80px; }
}
