/*
Theme Name: Electricista Santiago
Description: Professional electrician services theme for Santiago, Chile. Features contact forms, service showcase, and emergency 24/7 availability.
Author: Your Name
Version: 1.0
Text Domain: electricista-santiago
License: GPL v2 or later
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Color System */
:root {
    --primary: #1e40af;
    --primary-foreground: #ffffff;
    --accent: #f59e0b;
    --accent-foreground: #ffffff;
    --muted: #f3f4f6;
    --border: #e5e7eb;
    --background: #ffffff;
    --foreground: #374151;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: #1e3a8a;
    color: var(--primary-foreground);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-accent:hover {
    background-color: #d97706;
    color: var(--accent-foreground);
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    color: white;
}

.btn-phone {
    background-color: #dc2626;
    color: white;
}

.btn-phone:hover {
    background-color: #b91c1c;
    color: white;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    min-height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 1rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--foreground);
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
    background-color: var(--muted);
}

.header-cta {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(30, 58, 138, 0.8) 50%, rgba(29, 78, 216, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

.hero-text h1 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text .accent-text {
    color: var(--accent);
    display: block;
    font-size: 2.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-cta .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: var(--foreground);
}

.contact-form h3 {
    margin-bottom: 0.5rem;
}

.contact-form p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 100%;
}

.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

/* Emergency Banner */
.emergency-banner {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.375rem;
    background: rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    color: white;
}

.emergency-banner a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.emergency-banner a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

/* Responsive Design */
@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-cta {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .hero-text h1 {
        font-size: 4rem;
    }
    
    .hero-text .accent-text {
        font-size: 3rem;
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }