/* Emergency Home Contractor - Professional Styles */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #1e40af;
    --accent: #f59e0b;
    --success: #10b981;
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

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

/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 10px 0;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.emergency-banner .pulse {
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Header */
.site-header {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-icon { font-size: 1.6rem; }

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

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

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--primary); }

.phone-link {
    color: var(--primary);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-emergency {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.4);
}

.btn-emergency:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.btn-call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 1.3rem;
    padding: 18px 40px;
    width: 100%;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1e40af 100%);
    color: white;
    padding: 80px 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,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Lead Capture - ZIP Only + Click to Call */
.lead-capture {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.lead-capture h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lead-capture p {
    color: var(--gray);
    margin-bottom: 25px;
}

.zip-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.zip-input-wrapper {
    position: relative;
}

.zip-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 1.3rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    transition: border-color 0.2s;
}

.zip-input:focus {
    outline: none;
    border-color: var(--primary);
}

.zip-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.call-button-wrapper {
    display: none;
}

.call-button-wrapper.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.phone-display {
    text-align: center;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 10px;
    margin-bottom: 15px;
}

.phone-display .label {
    font-size: 0.85rem;
    color: var(--gray);
    display: block;
    margin-bottom: 5px;
}

.phone-display .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--gray);
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background: white;
}

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

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

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

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-card .meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
}

.service-card .badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-emergency {
    background: #fef2f2;
    color: var(--primary);
}

.badge-standard {
    background: #f0f9ff;
    color: var(--secondary);
}

/* Interlinking Section */
.interlink-section {
    padding: 60px 0;
    background: var(--light);
}

.interlink-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.interlink-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.interlink-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.interlink-card .location {
    font-weight: 600;
    color: var(--dark);
}

.interlink-card .service {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: #d1d5db;
}

/* Page Content */
.page-content {
    padding: 60px 0;
    background: white;
}

.two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.main-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.main-content .lead {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
}

.content-section ul {
    padding-left: 25px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Nearby Links */
.nearby-links {
    display: grid;
    gap: 10px;
}

.nearby-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.2s;
}

.nearby-link:hover {
    background: var(--primary);
    color: white;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    color: #9ca3af;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

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

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .two-column { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .header-cta .btn { padding: 10px 20px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .lead-capture { padding: 25px; }
    .hero { padding: 50px 0; }
    .services-grid { grid-template-columns: 1fr; }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
