/* home.css - Landing Page Styles */

/* --- Hero Section --- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #141414 0%, #082e18 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    overflow: hidden;
    color: white;
    text-align: center;
}

/* Background Pattern */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight-text {
    color: var(--cfn-green);
    background: -webkit-linear-gradient(45deg, var(--cfn-green), #a8e063);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-body, 'Open Sans', sans-serif);
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* --- Search Container --- */
.availability-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-input-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.search-icon {
    width: 24px;
    height: 24px;
    color: #94a3b8;
    margin-left: 15px;
    flex-shrink: 0;
}

#cfn-address-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 15px 20px 15px 10px;
    font-size: 1.1rem;
    border-radius: 50px;
    color: var(--npt-black);
    background: transparent;
}

#redirect-message {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--cfn-green);
    font-weight: 600;
}

/* --- Residential Promo Section --- */
.res-promo-section {
    padding: 80px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.res-promo-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.res-promo-text {
    flex: 1;
    text-align: left;
}

.section-tag {
    display: inline-block;
    background-color: #dcfce7;
    color: var(--cfn-dark-green);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.res-promo-text h2 {
    font-size: 2.5rem;
    color: var(--npt-black);
    margin-bottom: 20px;
    line-height: 1.1;
    font-family: var(--font-heading);
    font-weight: 800;
}

.res-promo-text p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.res-promo-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.res-promo-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    background-color: var(--cfn-green);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
}

.btn-primary-action:hover {
    background-color: var(--cfn-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

.btn-primary-action i {
    margin-left: 10px;
    transition: transform 0.2s;
}

.btn-primary-action:hover i {
    transform: translateX(4px);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Pull down slightly to cover any sub-pixel background bleed */
    left: 0; 
    width: 100%; 
    height: 41px; /* Increased slightly to maintain shape with negative bottom */
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0); /* Angled cut at bottom */
    z-index: 1;
}


/* --- Other Services Section --- */
.other-services-section {
    padding: 60px 20px 80px;
    background: #f8fafc;
}

.section-title-small {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 30px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 35px rgba(3, 166, 60, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(3, 166, 60, 0.3);
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    font-family: var(--font-heading);
}

.service-content p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-link {
    font-weight: 700;
    color: var(--cfn-green);
    font-size: 0.95rem;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.service-card:hover .service-link {
    gap: 12px;
    color: var(--cfn-dark-green);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .res-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .res-promo-text {
        text-align: center;
    }

    .res-promo-image {
        order: -1; /* Image on top for mobile? Or keep bottom? Default is bottom if not set. */
    }
}

