/* ===================================
   Sedona Plumbing Pros - Main Styles
   =================================== */

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

:root {
    /* Colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px 20px;
    --section-padding-mobile: 60px 20px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* Section Badges & Headers */
.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-light);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 24px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
}

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

.cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    padding: 140px 20px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1585704032915-c3400ca199e7?w=1600&h=900&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.85);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 56px;
    margin-bottom: 24px;
    line-height: 1.1;
    color: white;
}

.hero-title .highlight {
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    line-height: 1.6;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.hero-feature i {
    color: var(--accent-color);
    font-size: 20px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-cta .btn-primary {
    border: 2px solid white;
}

.hero-trust {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 20px;
}

.hero-trust p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--section-padding);
    background: var(--bg-white);
}

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

.about-text {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.stat h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat p {
    font-size: 14px;
    color: var(--text-gray);
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.about-image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-image-badge i {
    font-size: 32px;
    color: var(--primary-color);
}

.about-image-badge strong {
    display: block;
    font-size: 18px;
    color: var(--text-dark);
}

.about-image-badge span {
    font-size: 14px;
    color: var(--text-gray);
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Why Choose Us Section
   =================================== */
.why-choose {
    padding: var(--section-padding);
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: var(--transition);
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), #f59e0b);
    border-radius: 50%;
    margin: 0 auto 24px;
}

.feature-icon i {
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--secondary-color);
    font-size: 18px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 20px;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   Areas Section
   =================================== */
.areas {
    padding: var(--section-padding);
    background: white;
}

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

.areas-text {
    font-size: 17px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.cities-list {
    margin: 30px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
}

.cities-list h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.cities-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cities-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--text-gray);
}

.cities-list i {
    color: var(--primary-color);
}

.areas-call {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

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

.phone-link:hover {
    text-decoration: underline;
}

.areas-map {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===================================
   FAQ Section
   =================================== */
.faq {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: white;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question i {
    color: var(--primary-color);
    transition: var(--transition);
    font-size: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 24px;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===================================
   CTA Banner
   =================================== */
.cta-banner {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 36px;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 18px;
    opacity: 0.95;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text-dark);
    color: #d1d5db;
    padding: 60px 20px 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 26px;
    color: var(--secondary-color);
}

.footer-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.footer-contact-item i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-contact-item a {
    color: #d1d5db;
}

.footer-contact-item a:hover {
    color: var(--secondary-color);
}

.footer-column h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 15px;
    color: #d1d5db;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

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

.footer-bottom p {
    font-size: 14px;
    opacity: 0.8;
}

.footer-badges {
    display: flex;
    gap: 20px;
}

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.footer-badges i {
    color: var(--secondary-color);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 992px) {
    .section-title {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .about-grid,
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .cities-list ul {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 20px;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 40px 20px;
        gap: 20px;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 18px;
        width: 100%;
        padding: 10px 0;
    }
    
    .cta-button {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .about-image img {
        height: 400px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat h3 {
        font-size: 28px;
    }
    
    .services-grid,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 24px;
    }
    
    .cta-text p {
        font-size: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .cities-list ul {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.feature-card,
.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .mobile-toggle,
    .hero,
    .cta-banner,
    .footer {
        display: none;
    }
}