/**
 * Home Page Styles
 * View-specific styles for the WP Plumbing & Septic single-page website
 */

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #1a2a3a 0%, #2c5f8a 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.wpplumbingandseptic.com/assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 3rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-item i {
    margin-right: 0.5rem;
    color: #4da6ff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-actions .btn-primary {
    background-color: #2c5f8a;
    border-color: #2c5f8a;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.hero-actions .btn-primary:hover {
    background-color: #1a4a6f;
    border-color: #1a4a6f;
}

.hero-actions .btn-outline-light {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================== SERVICES SECTION ==================== */
.services-section {
    padding: 6rem 0;
    background-color: #f8f9fa;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: #1a2a3a;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2c5f8a 0%, #1a2a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: #1a2a3a;
    margin-bottom: 1rem;
}

.service-card p {
    font-family: 'Roboto', sans-serif;
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.contact-form-wrapper {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-label {
    font-weight: 500;
    color: #1a2a3a;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #2c5f8a;
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 138, 0.25);
}

.contact-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: #1a2a3a;
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-details li i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c5f8a 0%, #1a2a3a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details li strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #1a2a3a;
    font-size: 0.9rem;
}

.contact-details li span,
.contact-details li a {
    color: #6c757d;
    font-size: 0.95rem;
}

.contact-details li a:hover {
    color: #2c5f8a;
}

.map-container iframe {
    border-radius: 8px;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c5f8a 100%);
    color: #ffffff;
    padding: 4rem 0 0;
}

.footer-logo {
    max-width: 200px;
    height: auto;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-top h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact li i {
    width: 20px;
    text-align: center;
    color: #4da6ff;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-bottom .warranty-badge {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom .warranty-badge i {
    color: #4da6ff;
    margin-right: 0.5rem;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2c5f8a;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(44, 95, 138, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #1a2a3a;
    transform: translateY(-5px);
}

/* ==================== FORM STATUS ==================== */
.form-status {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-section,
    .contact-section {
        padding: 4rem 0;
    }

    .nav-link.phone-link {
        margin-top: 0.5rem;
        padding-top: 0.5rem !important;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==================== PAGE TRANSITIONS ==================== */
.page-section {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.page-section.active {
    display: block;
    opacity: 1;
}