/* 
==============================================
   DARK MODE GLASSMORPHISM THEME
   Matched Exactly to Edmonds Plumbing LLC
==============================================
*/

:root {
    /* Color Palette */
    --bg-color: #0b0f19;
    --bg-secondary: #131b2f;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --accent-alt: #f59e0b; /* Orange highlight for emergencies */
    
    /* UI Elements */
    --glass-bg: rgba(19, 27, 47, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Header */
.site-header {
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.animate-pulse {
    background: linear-gradient(135deg, var(--accent-alt), #d97706);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    animation: pulse 2s infinite;
}
.animate-pulse:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
                url('../../brain/0ebfafb1-1043-41a1-936e-41b9d6d76222/water_damage_hero_1779090113381.png') center/cover no-repeat;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.85); /* Darker overlay for better text readability */
}

.hero-content {
    display: flex;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-alt);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.display-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

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

.feature-card {
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Page Content & Grid Layout */
.page-content {
    padding: 4rem 0;
}

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

.directory-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.directory-list li a {
    display: block;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: var(--transition);
    text-align: center;
}

.directory-list li a h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.directory-list li a p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.directory-list li a:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.styled-list {
    list-style: none;
    margin: 1.5rem 0;
}

.styled-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.styled-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.sidebar-widget {
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    text-align: center;
}

.cta-container {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(11, 15, 25, 0));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem 2rem;
}

.cta-container h2 {
    font-size: 2.5rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    background-color: #05080f;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul a {
    color: var(--text-secondary);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Sticky Call & Popup */
.mobile-sticky-call {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 999;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.mobile-sticky-call .btn-primary {
    width: 100%;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
}

/* Modal Popup */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.popup-modal.hidden {
    display: none;
}

.popup-content {
    position: relative;
    max-width: 90%;
    width: 400px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    padding: 2.5rem;
}

.popup-modal.visible .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-popup:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-actions { flex-direction: column; }
    .display-title { font-size: 2.5rem; }
    .contact-grid, .service-content-grid, .directory-list ul { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    
    .mobile-sticky-call {
        display: block;
    }
    body {
        padding-bottom: 80px;
    }
}
