/* business.css - Styles for the Business Internet Page */

/* --- Hero Section --- */
.business-hero {
    /* Professional Blue/Dark Theme */
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 6rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 2rem;
}

.business-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    color: white;
}

.business-hero p {
    font-size: 1.25rem;
    color: #bfdbfe;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Layout --- */
.main-content {
    background-color: #f8fafc;
    padding-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--npt-black);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
}

/* --- Trusted Partners (Logo Carousel) --- */
.trusted-partners {
    padding: 3rem 0;
    background-color: white;
    overflow: hidden;
    margin-bottom: 4rem;
    border-bottom: 1px solid #e2e8f0;
}




/* --- Map Section --- */
.map-section {
    margin-bottom: 4rem;
}

.map-wrapper-card {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #e2e8f0; /* Loading placeholder */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Map Legend --- */
.map-legend {
    margin-top: 1.5rem;
    padding: 1rem;
    border-top: 1px solid #f1f5f9;
}

.map-legend h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--npt-black);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-box.red { background-color: #ef4444; }
.color-box.orange { background-color: #f97316; }
.color-box.green { background-color: #22c55e; }
.color-box.blue { background-color: #3b82f6; }

.legend-text {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.legend-text strong {
    color: var(--npt-black);
    margin-bottom: 2px;
}

.legend-text span {
    color: #64748b;
    font-size: 0.8rem;
}

/* --- Install story ------------------------------------------------------
   Three real install photographs between the territory map and the quote
   form. Ordered list rather than plain divs: these are sequential steps, so
   the order carries meaning for screen readers too. The numbering is drawn
   from the counter rather than list-style, which cannot be positioned over
   the image. */
.install-story {
    margin: 4rem 0;
}

.install-steps {
    counter-reset: install-step;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: clamp(20px, 2.5vw, 32px);
}

.install-step {
    counter-increment: install-step;
}

.install-step figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.install-step img {
    display: block;
    width: 100%;
    /* The three photographs are not all the same shape. Normalising the frame
       keeps the row even without distorting anyone's crop. */
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.install-step figcaption {
    position: relative;
    padding: 1.1rem 0 0 3rem;
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.6;
}

.install-step figcaption strong {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--npt-black);
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 1.02rem;
}

.install-step figcaption::before {
    content: counter(install-step);
    position: absolute;
    top: 1.05rem;
    left: 0;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--cfn-green, #03A63C);
    color: #ffffff;
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    font-weight: 700;
}

@media (max-width: 640px) {
    .install-story {
        margin: 2.5rem 0;
    }

    .install-step img {
        aspect-ratio: 3 / 2;
    }
}

/* --- Inquiry Form Section --- */
.inquiry-section {
    max-width: 1100px;
    margin: 0 auto;
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Text left, Form right */
    gap: 3rem;
    align-items: start;
}

.form-intro {
    padding-top: 1rem;
}

.form-intro h2 {
    font-size: 2rem;
    color: var(--npt-black);
    margin-bottom: 1rem;
}

.form-intro p {
    color: #475569;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--npt-black);
}

.benefit-list .cfn-icon {
    color: var(--cfn-green);
    background: #dcfce7;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Form Card */
.form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.form-card:hover {
    box-shadow: var(--glow-green);
}

.form-card.glass-card {
    background: rgba(255, 255, 255, 0.9);
}

/* Input Consistency with Support Page */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-group.half { flex: 1; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #1e293b;
}

.form-input:focus {
    outline: none;
    border-color: var(--cfn-green);
    box-shadow: 0 0 0 3px rgba(3, 166, 60, 0.1);
}

.help-text {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 4px;
}

/* Success State */
.success-box {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease;
}

.icon-check {
    font-size: 3.5rem;
    color: var(--cfn-green);
    margin-bottom: 1rem;
}

.success-box h3 {
    color: var(--npt-black);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-box p {
    color: #64748b;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Anti-Spam Honeypot (Visually Hidden) */
.visual-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .form-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-intro {
        text-align: center;
    }
    .benefit-list {
        display: inline-block;
        text-align: left;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .business-hero {
        clip-path: none;
        padding: 3.5rem 1rem 3rem;
    }

    .business-hero h1 {
        font-size: clamp(2rem, 10vw, 2.65rem);
    }

    .trusted-partners {
        margin-bottom: 2.5rem;
    }

    .main-content,
    .map-section,
    .business-form-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .map-wrapper-card,
    .form-card {
        border-radius: 12px;
        padding: 1rem;
    }

    .map-container {
        padding-bottom: 78%;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        gap: 1.5rem;
    }

    .form-intro h2 {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }
}

/* --- Chamber memberships --------------------------------------------------
   Replaces the customer logo ribbon. Logos vary wildly in shape — the set runs
   from 480x124 to 480x480 — so each sits in a fixed box on white and is scaled
   to fit rather than cropped, which keeps them optically even without
   distorting anyone's mark. */
.chambers {
    padding: 72px 20px;
    background: #ffffff;
}

.chambers .section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.6vw, 2.1rem);
    color: var(--npt-black);
    margin: 0 0 10px;
    line-height: 1.25;
}

.chambers-sub {
    text-align: center;
    color: #64748b;
    font-size: 1.02rem;
    margin: 0 auto 44px;
    max-width: 560px;
}

.chambers-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 28px;
    max-width: 1100px;
    margin-inline: auto;
}

.chamber {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.chamber img {
    width: 100%;
    max-width: 160px;
    height: 90px;
    object-fit: contain;
    display: block;
}

.chamber span {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
}

@media (max-width: 640px) {
    .chambers {
        padding: 52px 16px;
    }

    .chambers-grid {
        gap: 22px;
    }

    .chamber img {
        height: 72px;
    }
}
