/*
Theme Name: Mojave Communications
Theme URI: https://mojavecommunications.com
Author: Mojave Communications
Author URI: https://mojavecommunications.com
Description: Custom WordPress theme for Mojave Communications with coverage map and UISP integration
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mojave-wisp
*/

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

:root {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Header Styles */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-contact {
    text-align: right;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.header-phone:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transform: scale(1.05);
}

.phone-icon {
    font-size: 1.2rem;
}

.phone-number {
    white-space: nowrap;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 20px;
}

.site-logo {
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

.site-logo-link {
    display: inline-block;
    line-height: 0;
}

.site-logo-link img {
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.hero-phone-btn:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.hero-phone-btn span {
    font-size: 1.2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 20px;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.feature-card h3 {
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section {
    background-color: var(--bg-light);
    padding: 4rem 20px;
}

.testimonial {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Statistics Section */
.stats-section {
    background: var(--primary-color);
    color: white;
    padding: 4rem 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Coverage Map */
.coverage-map-container {
    padding: 4rem 20px;
}

.map-wrapper {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.address-checker {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.address-checker input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
}

.availability-result {
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
    font-size: 1rem;
    line-height: 1.6;
}

.availability-result.loading {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

.availability-result.available {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.availability-result.unavailable {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
    display: block;
}

.availability-result a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.availability-result a:hover {
    text-decoration: none;
}

/* Pricing Tables */
.pricing-section {
    padding: 4rem 20px;
}

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

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0,102,204,0.2);
}

.pricing-card h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.price-period {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 3rem 20px 1rem;
}

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

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

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* Customer Portal */
.portal-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
}

.login-form, .account-info {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
}

.account-dashboard {
    display: grid;
    gap: 2rem;
}

.dashboard-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .header-top-bar {
        padding: 0.5rem 0;
    }
    
    .header-contact {
        text-align: center;
    }
    
    .header-phone {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .features-grid,
    .pricing-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        height: 400px;
    }
}

/* Experience-Specific Styling */

/* Residential Experience - Friendly, Home-focused */
.experience-residential {
    --primary-color: #0066cc;
    --secondary-color: #004499;
    --accent-color: #ff6600;
}

.experience-residential .site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.experience-residential .hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

/* Business Experience - Professional, Trust-focused */
.experience-business {
    --primary-color: #1a5490;
    --secondary-color: #0d3d6b;
    --accent-color: #2e7d32;
}

.experience-business .site-header {
    background: #f8f9fa;
    border-bottom: 3px solid var(--primary-color);
}

.experience-business .header-top-bar {
    background: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.experience-business .header-top-bar a {
    color: white;
}

.experience-business .hero-section {
    background: linear-gradient(135deg, #1a5490 0%, #0d3d6b 100%);
}

.experience-business .header-experience-switcher {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: white;
}

.experience-business .header-experience-switcher a {
    color: rgba(255,255,255,0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.experience-business .header-experience-switcher a:hover,
.experience-business .header-experience-switcher a.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Enterprise Experience - Premium, Sophisticated */
.experience-enterprise {
    --primary-color: #0a2540;
    --secondary-color: #051a2e;
    --accent-color: #d4af37;
}

.experience-enterprise .site-header {
    background: #0a2540;
    color: white;
}

.experience-enterprise .site-header a {
    color: white;
}

.experience-enterprise .header-top-bar {
    background: #051a2e;
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.experience-enterprise .hero-section {
    background: linear-gradient(135deg, #0a2540 0%, #051a2e 100%);
    position: relative;
    overflow: hidden;
}

.experience-enterprise .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.experience-enterprise .header-experience-switcher {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: white;
}

.experience-enterprise .header-experience-switcher a {
    color: rgba(255,255,255,0.7);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.experience-enterprise .header-experience-switcher a:hover,
.experience-enterprise .header-experience-switcher a.active {
    background: var(--accent-color);
    color: #0a2540;
    border-color: var(--accent-color);
}

.experience-enterprise .feature-card {
    border: 1px solid rgba(212,175,55,0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.experience-enterprise .pricing-card {
    border: 2px solid rgba(212,175,55,0.3);
    position: relative;
}

.experience-enterprise .pricing-card.featured {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(212,175,55,0.3);
}

/* Business Advertising Banners */
.experience-business .business-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
    margin: 2rem 0;
    border-radius: 4px;
}

.experience-business .business-banner h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-business .business-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.experience-business .business-stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.experience-business .business-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

