/* A1 Locksmith Services LLC - Main Stylesheet */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===== Header & Navigation ===== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.header-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-info i {
    color: var(--secondary-color);
}

.emergency-badge {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.header-main {
    padding: 15px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 180px;
}

.logo img {
    width: 100%;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

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

.cta-btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

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

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

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    padding: 80px 0;
    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 1200 120"><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25"/><path fill="%23ffffff" fill-opacity="0.05" d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5"/></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

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

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

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

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 15px 35px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

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

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

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

/* ===== Features Bar ===== */
.features-bar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    margin-top: -40px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    overflow: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
}

.feature-item {
    padding: 30px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background-color: var(--light-color);
}

.feature-icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--text-light);
    font-size: 14px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 38px;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

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

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

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

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

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

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin: 30px 0;
}

.about-feature {
    display: flex;
    align-items: start;
    gap: 15px;
    margin-bottom: 20px;
}

.about-feature i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 3px;
}

.about-feature h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.about-feature p {
    margin: 0;
    font-size: 15px;
}

.about-image {
    position: relative;
}

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

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--light-color);
}

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

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

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
}

.author-info h4 {
    font-size: 16px;
    color: var(--dark-color);
    margin-bottom: 3px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-phone {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 30px;
    display: block;
}

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

.contact-info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-content h3 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.contact-info-content p {
    color: var(--text-light);
}

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

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

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

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

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

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

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

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

/* ===== Footer ===== */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

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

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

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: var(--text-light);
}

/* ===== Service Details Page ===== */
.service-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

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

.service-hero p {
    font-size: 18px;
    opacity: 0.95;
}

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

.service-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.service-content h2 {
    font-size: 28px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.service-content h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.service-content ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-content ul li {
    padding: 10px 0 10px 30px;
    color: var(--text-light);
    position: relative;
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 18px;
}

.service-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.sidebar-card p {
    margin-bottom: 20px;
    opacity: 0.95;
}

.sidebar-phone {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 20px;
}

.services-list {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
}

.services-list h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 20px;
}

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

.services-list ul li {
    margin-bottom: 10px;
}

.services-list ul li a {
    color: var(--text-dark);
    padding: 12px 15px;
    display: block;
    background-color: var(--white);
    border-radius: 5px;
    transition: all 0.3s;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
    .header-main nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        padding: 80px 30px 30px;
        transition: right 0.3s;
        z-index: 999;
    }

    .header-main nav.active {
        right: 0;
    }

    .header-main nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .about-grid,
    .contact-grid,
    .service-details-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .header-info {
        gap: 15px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-phone {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-hero h1 {
        font-size: 32px;
    }
}
