/*
Theme Name: Artisan Solidaire
Theme URI: https://example.com/artisan-solidaire
Author: Your Name
Author URI: https://example.com
Description: Fast, lightweight one-page theme for emergency locksmith services. Optimized for speed and conversions.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: artisan-solidaire
*/

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #64B5F6;
    --secondary: #FF9800;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    --light: #ffffff;
    --gray: #f8f9fa;
    --gray-dark: #6c757d;
    --text: #333333;
    --success: #4CAF50;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.highlight { color: var(--primary); }

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

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-logo img {
    height: 55px;
    width: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,26,46,0.85) 0%, rgba(15,15,26,0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--light);
    padding: 80px 20px;
    max-width: 850px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    margin-bottom: 35px;
    border: 1px solid rgba(255,255,255,0.15);
}

.rating-badge .star {
    color: var(--secondary);
    font-size: 1.1rem;
}

.rating-badge strong {
    color: var(--secondary);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-benefits {
    list-style: none;
    margin-bottom: 45px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 1.15rem;
}

.hero-benefits .check {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.hero-benefits strong {
    color: var(--primary);
}

.btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--light);
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(33,150,243,0.4);
    transition: var(--transition);
    margin-bottom: 15px;
}

.btn-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(33,150,243,0.5);
}

.btn-phone svg {
    width: 24px;
    height: 24px;
}

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

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

.availability {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.availability .pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 100px 0;
    background: var(--light);
}

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

.feature-card {
    background: var(--light);
    padding: 45px 35px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

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

.feature-icon {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: var(--light);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 700;
}

.feature-card h3 .highlight {
    color: var(--primary);
}

.feature-card p {
    color: var(--gray-dark);
    line-height: 1.7;
    font-size: 1rem;
}

.feature-card strong {
    color: var(--primary);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: 100px 0;
    background: var(--gray);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: var(--dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

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

.testimonial-card {
    background: var(--light);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.testimonial-stars {
    color: var(--secondary);
    margin-bottom: 18px;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text);
    font-size: 1.05rem;
}

.testimonial-text strong {
    color: var(--primary);
    font-style: normal;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 1rem;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 4px;
}

/* Google Reviews */
.google-reviews {
    text-align: center;
    margin-bottom: 40px;
}

.google-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--light);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.google-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.google-icon {
    width: 30px;
    height: 30px;
}

.google-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.google-stars {
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.google-text {
    font-size: 0.85rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* Testimonials CTA */
.testimonials-cta {
    text-align: center;
    padding-top: 20px;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background: var(--light);
}

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

.service-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-image {
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
    text-align: center;
}

.service-content h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-content p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== QUOTE SECTION ===== */
.quote-section {
    padding: 100px 0;
    background: var(--gray);
}

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

.quote-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}

.quote-content h2 .highlight {
    color: var(--primary);
}

.quote-content p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.quote-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.quote-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== TRUST/PROCESS SECTION ===== */
.trust {
    padding: 100px 0;
    background: var(--light);
}

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

.process-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.process-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-card:hover .process-image img {
    transform: scale(1.05);
}

.process-number {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(33,150,243,0.4);
    border: 4px solid var(--light);
}

.process-content {
    padding: 45px 25px 30px;
    text-align: center;
}

.process-content h3 {
    font-size: 1.15rem;
    color: var(--dark);
    font-weight: 600;
}

/* ===== INSURANCE SECTION ===== */
.insurance {
    padding: 100px 0;
    background: var(--gray);
}

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

.insurance-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.insurance-image img {
    width: 100%;
    height: auto;
    display: block;
}

.insurance-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.3;
}

.insurance-content h2 .highlight {
    color: var(--primary);
}

.insurance-content p {
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.final-cta-content {
    margin-bottom: 40px;
}

.final-cta-content h2 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 30px;
    font-weight: 700;
}

.final-cta-content h2 .highlight {
    color: rgba(255,255,255,0.9);
}

.final-cta .btn-phone {
    background: var(--light);
    color: var(--primary);
}

.final-cta .btn-phone:hover {
    background: var(--gray);
    transform: translateY(-3px);
}

.final-cta .availability {
    color: rgba(255,255,255,0.9);
}

.ranking-text {
    color: var(--light);
    font-size: 1.2rem;
    opacity: 0.9;
}

.ranking-text strong {
    font-weight: 700;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--darker);
    color: var(--light);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-brand h3 .highlight {
    color: var(--primary);
}

.footer-brand p {
    opacity: 0.75;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 0.9rem;
    margin-bottom: 25px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

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

.footer-nav a {
    opacity: 0.7;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

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

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-bottom p {
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    opacity: 0.6;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.7s ease forwards;
}

/* Stagger animation delays */
.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }

.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }

.process-grid .process-card:nth-child(1) { animation-delay: 0.1s; }
.process-grid .process-card:nth-child(2) { animation-delay: 0.2s; }
.process-grid .process-card:nth-child(3) { animation-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .quote-grid,
    .insurance-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .quote-image,
    .insurance-image {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .btn-phone {
        font-size: 1.1rem;
        padding: 16px 32px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .testimonials-grid,
    .services-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .testimonial-card,
    .service-card,
    .process-card {
        padding: 30px 25px;
    }
    
    .quote-content h2,
    .insurance-content h2,
    .final-cta-content h2 {
        font-size: 1.7rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-content {
        padding: 40px 15px;
    }
    
    .rating-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .features,
    .testimonials,
    .services,
    .quote-section,
    .trust,
    .insurance {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .testimonial-card,
    .service-card,
    .process-card {
        padding: 25px 20px;
    }
    
    .process-image {
        height: 220px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-header,
    .hero-bg,
    .btn-phone,
    .footer-social,
    .final-cta {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        background: var(--light) !important;
        color: var(--dark) !important;
        padding: 40px 0;
    }
    
    .hero-content {
        color: var(--dark) !important;
    }
    
    .hero-overlay {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
