/* ===================================================================
   Progressive Enviro Care - Section components
   Icon-bullet reason grid, proof band, and the contact-form challenge.
   =================================================================== */

/* ---------- Why Us: icon bullet grid ---------- */
.reason-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 44px;
}

.reason-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    align-items: start;
    background: #ffffff;
    border: 1px solid var(--line, #e4ebe9);
    border-radius: 12px;
    padding: 26px 26px 24px;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.reason-card:hover {
    border-color: rgba(2, 132, 199, 0.45);
    box-shadow: 0 14px 30px -18px rgba(2, 132, 199, 0.25);
    transform: translateY(-2px);
}

/* Icon holds column one across both text rows; heading and copy stack in
   column two. Without explicit placement the paragraph wraps back under the
   icon and gets squeezed to 52px. */
.reason-icon {
    grid-column: 1;
    grid-row: span 2;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(150deg, rgba(2, 132, 199, 0.14) 0%, rgba(14, 165, 233, 0.06) 100%);
    border: 1px solid rgba(2, 132, 199, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    font-size: 20px;
    flex: none;
}

.reason-card h3 {
    grid-column: 2;
    font-size: 17.5px;
    font-weight: 700;
    color: var(--text-heading, #0f1f2b);
    margin: 3px 0 9px;
    line-height: 1.35;
}
.reason-card p {
    grid-column: 2;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-body, #40535e);
    margin: 0;
}

@media (max-width: 900px) {
    .reason-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 520px) {
    .reason-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 22px 20px;
    }
    /* Single column: everything stacks, so drop the two-column placement. */
    .reason-card .reason-icon,
    .reason-card h3,
    .reason-card p {
        grid-column: 1;
        grid-row: auto;
    }
}

/* ---------- Team grid ----------
   Replaces the floated bootstrap columns the theme used here. Those floats
   escaped their parent, which is why the about page carried a hard-coded
   751px section height to compensate. */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 860px;
    margin: 0 auto;
}
.team-grid .team-member {
    margin-bottom: 0;
    float: none;
    width: auto;
    padding: 0;
}
.team-grid .team-member .inner-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 34px -20px rgba(4, 25, 31, 0.55);
}
.team-grid .team-member .image-box img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.team-grid .team-member .overlay-box .user-info .text {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 11.5px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.team-grid .team-member .overlay-box .user-info h4 {
    font-size: 17px;
    line-height: 1.3;
}
@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 420px;
    }
}


/* ---------- Team Management Section (Site Theme: Clean, Light, Premium) ---------- */
.team-management-section {
    padding: 75px 0 80px;
    background: var(--paper, #f5f8f7);
    border-top: 1px solid var(--line, #e4ebe9);
    border-bottom: 1px solid var(--line, #e4ebe9);
    position: relative;
}
.team-management-section .sec-title {
    text-align: center;
    margin-bottom: 38px;
}
.team-management-section .sec-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--ink, #0f1f2b) !important;
    margin: 8px 0 12px;
    letter-spacing: -0.02em;
}
.team-management-section .sec-title h2 span {
    color: var(--mint-600, #0fa87e) !important;
    font-family: inherit;
    font-weight: 700;
}
.team-management-section .sec-title p {
    color: var(--slate-500, #5b6b76);
    font-size: 15.5px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Specialist & Execution Teams Section ---------- */
.specialist-teams-section {
    padding: 85px 0 95px;
    background: #ffffff;
    position: relative;
}
.specialist-teams-section .sec-title {
    text-align: center;
    margin-bottom: 34px;
}
.specialist-teams-section .sec-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: var(--ink, #0f1f2b) !important;
    margin: 8px 0 12px;
    letter-spacing: -0.02em;
}
.specialist-teams-section .sec-title h2 span {
    color: var(--mint-600, #0fa87e) !important;
    font-weight: 700;
}
.specialist-teams-section .sec-title p {
    color: var(--slate-500, #5b6b76);
    font-size: 15.5px;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filter bar */
.team-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.team-filter-btn {
    appearance: none;
    border: 1px solid var(--line, #e4ebe9);
    background: #ffffff;
    color: var(--slate-500, #5b6b76);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 180ms ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.team-filter-btn .count {
    display: inline-block;
    background: var(--paper, #f5f8f7);
    color: var(--slate-500, #5b6b76);
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    border: 1px solid var(--line, #e4ebe9);
    transition: all 180ms ease;
}
.team-filter-btn:hover {
    border-color: var(--mint-500, #16c294);
    color: var(--ink, #0f1f2b);
    background: var(--paper, #f5f8f7);
}
.team-filter-btn.active {
    background: var(--navy-900, #072830);
    border-color: var(--navy-900, #072830);
    color: #ffffff;
    box-shadow: 0 4px 14px -4px rgba(7, 40, 48, 0.35);
}
.team-filter-btn.active .count {
    background: rgba(45, 219, 168, 0.2);
    color: var(--mint-400, #2ddba8);
    border-color: transparent;
}

/* Departments Grid */
.specialist-departments-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}
.dept-card {
    background: #ffffff;
    border: 1px solid var(--line, #e4ebe9);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px -8px rgba(4, 25, 31, 0.05);
    transition: transform 200ms ease, box-shadow 200ms ease, opacity 250ms ease;
    display: flex;
    flex-direction: column;
}
.dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(4, 25, 31, 0.12);
    border-color: var(--slate-300, #bcd6d2);
}
.dept-card.col-6 {
    grid-column: span 6;
}
.dept-card.col-4 {
    grid-column: span 4;
}
.dept-card.col-12 {
    grid-column: span 12;
}

/* Dept Card Header */
.dept-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line, #e4ebe9);
    margin-bottom: 18px;
}
.dept-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dept-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.dept-meta {
    flex-grow: 1;
}
.dept-meta h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink, #0f1f2b);
    margin: 0 0 3px;
    line-height: 1.3;
}
.dept-meta .dept-sub {
    font-size: 12.5px;
    color: var(--slate-500, #5b6b76);
    display: block;
    line-height: 1.4;
}
.dept-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--mint-600, #0fa87e);
    background: rgba(22, 194, 148, 0.08);
    border: 1px solid rgba(22, 194, 148, 0.25);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Gallery inside Dept */
.dept-members-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}
.member-thumbnail-card {
    flex: 1 1 0;
    min-width: 100px;
    max-width: 126px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--paper, #f5f8f7);
    border: 1px solid var(--line, #e4ebe9);
    box-shadow: 0 2px 8px rgba(4, 25, 31, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    display: flex;
    flex-direction: column;
}
.member-thumbnail-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 22px -6px rgba(4, 25, 31, 0.16);
    border-color: var(--mint-500, #16c294);
}
.thumb-img-wrap {
    width: 100%;
    aspect-ratio: 5 / 6;
    overflow: hidden;
    background: #eaeaea;
}
.thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 260ms ease;
}
.member-thumbnail-card:hover .thumb-img-wrap img {
    transform: scale(1.06);
}
.thumb-badge {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--slate-500, #5b6b76);
    background: #ffffff;
    padding: 6px 8px;
    text-align: center;
    border-top: 1px solid var(--line, #e4ebe9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.member-thumbnail-card:hover .thumb-badge {
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
}

@media (max-width: 991px) {
    .dept-card.col-6,
    .dept-card.col-4 {
        grid-column: span 12;
    }
    .member-thumbnail-card {
        flex: 0 0 calc(25% - 9px);
        max-width: none;
    }
}
@media (max-width: 600px) {
    .specialist-teams-section {
        padding: 55px 0 65px;
    }
    .team-management-section {
        padding: 55px 0 65px;
    }
    .team-filter-bar {
        gap: 6px;
    }
    .team-filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    .member-thumbnail-card {
        flex: 0 0 calc(50% - 6px);
    }
}

/* ---------- Proof band ---------- */
.proof-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line, #e4ebe9);
    border: 1px solid var(--line, #e4ebe9);
    border-radius: 14px;
    overflow: hidden;
}
.proof-item {
    background: #ffffff;
    padding: 30px 22px;
    text-align: center;
}
.proof-item .n {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy-800, #0b3742);
    line-height: 1.1;
}
.proof-item .l {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--text-muted, #64798a);
    margin-top: 9px;
}
@media (max-width: 700px) {
    .proof-band { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact form: human check ---------- */
.form-captcha {
    background: #f5f8f7;
    border: 1px solid var(--line, #e4ebe9);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
}
.form-captcha .cap-label {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted, #64798a);
    display: block;
    margin-bottom: 12px;
}
.form-captcha .cap-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.form-captcha .cap-question {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading, #0f1f2b);
    background: #ffffff;
    border: 1px solid var(--line, #e4ebe9);
    border-radius: 8px;
    padding: 10px 18px;
    letter-spacing: 0.04em;
    user-select: none;
}
.form-captcha .cap-equals {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted, #64798a);
}
/* The theme sets a full-width rule on every .form-group input, so this needs
   the extra specificity to keep the answer box beside the question. */
.form-captcha .cap-row input[type="text"] {
    flex: 0 0 118px;
    width: 118px;
    height: 46px;
    border: 1px solid #d8e2e0;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-heading, #0f1f2b);
    background: #ffffff;
}
.form-captcha .cap-row input[type="text"]:focus {
    border-color: var(--mint-500, #16c294);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 194, 148, 0.15);
}
.form-captcha .cap-refresh {
    background: none;
    border: none;
    color: var(--mint-600, #0fa87e);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.form-captcha .cap-refresh:hover {
    text-decoration: underline;
}
.form-captcha.is-invalid {
    border-color: #e2a3a3;
    background: #fdf4f4;
}
.form-captcha .cap-error {
    display: none;
    margin-top: 10px;
    font-size: 13.5px;
    color: #8a2323;
}
.form-captcha.is-invalid .cap-error {
    display: block;
}
.form-captcha.is-valid {
    border-color: #a9dcc4;
    background: #f2fbf6;
}

/* Honeypot - hidden from people, visible to naive bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Suppress legacy decorative background images for clean modern cards */
.services-section:before,
.services-section:after {
    display: none !important;
}

.services-tier-header {
    text-align: left;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(7, 40, 48, 0.08);
}
.services-tier-header.tier-two {
    margin-top: 48px;
}
.services-tier-header .tier-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.28);
    color: #0284c7;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.services-tier-header h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #072830;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.services-tier-header p {
    font-size: 14.5px;
    color: #5d7175;
    margin: 0;
    line-height: 1.6;
    max-width: 760px;
}

/* Service Grids */
.services-modern-grid {
    display: grid;
    gap: 24px;
}
.services-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Modern Service Card */
.service-card-modern {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(7, 40, 48, 0.08);
    border-radius: 16px;
    padding: 30px 24px 24px;
    box-shadow: 0 2px 4px rgba(7, 40, 48, 0.03), 0 10px 24px -12px rgba(7, 40, 48, 0.07);
    transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms ease, border-color 280ms ease;
    height: 100%;
    position: relative;
    text-align: left;
}
.service-card-modern:hover {
    transform: translateY(-6px);
    border-color: rgba(2, 132, 199, 0.45);
    box-shadow: 0 16px 36px -12px rgba(2, 132, 199, 0.22);
}

/* Icon Wrap - Crisp Water Blue */
.service-card-modern .service-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(14, 165, 233, 0.04) 100%);
    border: 1px solid rgba(2, 132, 199, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7; /* Water Blue */
    margin-bottom: 20px;
    transition: all 280ms cubic-bezier(.2,.8,.2,1);
    flex-shrink: 0;
}
.service-card-modern:hover .service-icon-wrap {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.08);
    box-shadow: 0 8px 22px -4px rgba(2, 132, 199, 0.45);
}
.service-card-modern .service-icon-wrap svg {
    display: block;
    width: 30px;
    height: 30px;
}

/* Card Heading & Tag */
.service-card-modern h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    text-transform: none;
}
.service-card-modern h3 a {
    color: #072830;
    transition: color 200ms ease;
    text-decoration: none;
}
.service-card-modern:hover h3 a {
    color: #0284c7;
}
.service-card-modern .service-tag {
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: 12px;
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0284c7;
}
.service-card-modern .service-desc {
    font-size: 14.5px;
    line-height: 1.62;
    color: #4e6166;
    margin: 0;
    flex-grow: 1;
    text-align: left;
}

/* Card CTA */
.service-card-modern .service-cta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(7, 40, 48, 0.06);
}
.service-card-modern .service-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
    transition: color 200ms ease;
}
.service-card-modern .service-cta a:hover {
    color: #0369a1;
}
.service-card-modern .service-cta a .arrow-icon {
    display: inline-block;
    transition: transform 200ms ease;
}
.service-card-modern:hover .service-cta a .arrow-icon {
    transform: translateX(4px);
}

/* Responsive Media Queries */
@media (max-width: 1199px) and (min-width: 861px) {
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 860px) and (min-width: 601px) {
    .services-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid-3 .service-card-modern:last-child {
        grid-column: span 2;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .services-grid-4,
    .services-grid-3 {
        grid-template-columns: 1fr;
    }
    .services-tier-header.tier-two {
        margin-top: 36px;
    }
    .service-card-modern {
        padding: 24px 20px;
    }
}

