/* ==========================================================================
   FRONT PAGE STYLES — v2.17.2
   Dual-practice homepage: Air Quality & Energy
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* Background slides */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14, 18, 12, 0.82) 0%,
        rgba(14, 18, 12, 0.60) 60%,
        rgba(14, 18, 12, 0.75) 100%
    );
}

/* Hero content */
.hero-content-wrap {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Dual-practice pills */
.hero-practice-toggle {
    display: inline-flex;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 32px;
}

.practice-pill {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 8px;
}

.practice-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.practice-pill.air.active {
    background: rgba(118, 166, 66, 0.15);
    color: var(--envera-green-light);
    border-right: 1px solid rgba(118, 166, 66, 0.3);
}

.practice-pill.air .dot { background: var(--envera-green); }

.practice-pill.energy.active {
    background: var(--amber-dim);
    color: var(--amber-light);
}

.practice-pill.energy .dot { background: var(--amber-light); }

/* Hero heading */
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 860px;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: italic;
    color: var(--envera-green-light);
}

.hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    line-height: 1.65;
    margin-bottom: 44px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Ghost button for hero (white border on dark bg) */
.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

/* Stats bar */
.hero-stats-bar {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    margin-top: auto;
}

.hero-stats-inner {
    display: flex;
    gap: 0;
}

.stat-item {
    flex: 1;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    margin-right: 40px;
}

.stat-item:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}

.stat-accent { color: var(--envera-green); }

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 160px; /* sit above stats bar */
    right: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 2;
}

.hero-scroll-indicator svg {
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --------------------------------------------------------------------------
   DUAL PRACTICE SECTION
   -------------------------------------------------------------------------- */
.dual-practice-section {
    background: var(--gray-900);
    padding: 72px 48px;
}

.dual-practice-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.practice-panel {
    padding: 52px 48px;
    position: relative;
    overflow: hidden;
}

.practice-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}

.air-panel {
    background: #0d1a0a;
    border: 1px solid rgba(118, 166, 66, 0.2);
    border-right: none;
    border-radius: 12px 0 0 12px;
}

.air-panel::before { background: var(--envera-green); }

.energy-panel {
    background: #1a1200;
    border: 1px solid rgba(196, 120, 10, 0.2);
    border-radius: 0 12px 12px 0;
}

.energy-panel::before { background: var(--amber); }

.practice-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.air-panel .practice-icon {
    background: rgba(118, 166, 66, 0.15);
}

.air-panel .practice-icon svg {
    width: 24px; height: 24px;
    stroke: var(--envera-green-light);
}

.energy-panel .practice-icon {
    background: var(--amber-dim);
}

.energy-panel .practice-icon svg {
    width: 24px; height: 24px;
    stroke: var(--amber-light);
}

.practice-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
}

.air-panel .practice-tag { color: var(--envera-green); }
.energy-panel .practice-tag { color: var(--amber-light); }

.practice-panel h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.practice-panel p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 28px;
}

.practice-services-list {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.practice-services-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.practice-services-list li::before {
    content: '';
    width: 16px;
    height: 1px;
    flex-shrink: 0;
}

.air-panel .practice-services-list li::before { background: var(--envera-green); }
.energy-panel .practice-services-list li::before { background: var(--amber); }

.practice-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.air-panel .practice-cta-link {
    color: var(--envera-green-light);
    border: 1px solid rgba(118, 166, 66, 0.35);
}

.air-panel .practice-cta-link:hover {
    background: rgba(118, 166, 66, 0.15);
}

.practice-cta-link.energy {
    color: var(--amber-light);
    border: 1px solid rgba(196, 120, 10, 0.35);
}

.practice-cta-link.energy:hover {
    background: var(--amber-dim);
}

/* --------------------------------------------------------------------------
   APPROACH SECTION
   -------------------------------------------------------------------------- */
.approach-section {
    padding: 100px 0;
    background: var(--off-white);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.approach-left h2 {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 24px;
}

.approach-left h2 em {
    font-style: italic;
    color: var(--envera-green-dark);
}

.approach-left p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 20px;
}

.approach-left .btn {
    margin-top: 12px;
}

.approach-right {
    padding-top: 12px;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.approach-step {
    display: flex;
    gap: 20px;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--gray-100);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
}

.step-body h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.step-body p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   SERVICES SECTION (dual-column)
   -------------------------------------------------------------------------- */
.fp-services {
    padding: 100px 0;
    background: var(--white);
}

.fp-services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 52px;
}

.fp-services-header h2 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.fp-services-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.group-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid var(--gray-100) !important;
    font-family: var(--font-body) !important;
}

.air-group .group-label {
    color: var(--envera-green-dark) !important;
    border-color: var(--envera-green) !important;
}

.energy-group .group-label {
    color: var(--amber) !important;
    border-color: var(--amber) !important;
}

.fp-service-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fp-service-card {
    display: block;
    padding: 24px 28px;
    border: 1px solid var(--gray-100);
    border-radius: 10px;
    text-decoration: none;
    background: var(--white);
    transition: all 0.25s;
}

.fp-service-card:hover {
    border-color: var(--gray-200);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.air-group .fp-service-card:hover { border-color: var(--envera-green); }
.energy-group .fp-service-card:hover { border-color: var(--amber); }

.card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg { width: 18px; height: 18px; }

.air-icon { background: var(--envera-green-dim); }
.air-icon svg { stroke: var(--envera-green); }

.energy-icon { background: var(--amber-dim); }
.energy-icon svg { stroke: var(--amber); }

.card-arrow {
    width: 16px; height: 16px;
    color: var(--gray-200);
    transition: color 0.2s;
    flex-shrink: 0;
}

.fp-service-card:hover .card-arrow { color: var(--gray-600); }

.fp-service-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.3;
}

.fp-service-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* --------------------------------------------------------------------------
   INSIGHTS SECTION
   -------------------------------------------------------------------------- */
.fp-insights {
    background: var(--gray-900) !important;
    padding: var(--space-5xl) 0 !important;
}

.fp-insights .section-header-flex h2 {
    color: var(--white);
}

.fp-insights .section-label {
    color: var(--envera-green);
}

.fp-insights .view-all-link {
    color: var(--envera-green-light);
}

.fp-insights .view-all-link:hover {
    color: var(--white);
}

/* Overlay post cards (photo + gradient, title overlaid, square Read More) */
.fp-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}

.fp-insight-card {
    position: relative;
    display: block;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

/* Zoomable image layer so hover scales the photo, not the content */
.fp-insight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Legibility gradient: transparent top -> ~88% black bottom */
.fp-insight-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,22,18,0.1) 0%, rgba(20,22,18,0.55) 55%, rgba(20,22,18,0.88) 100%);
}

.fp-insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.4);
}

.fp-insight-card:hover::before { transform: scale(1.05); }

.fp-insight-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 32px;
}

.fp-insight-eyebrow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--envera-green-light);
    margin-bottom: 14px;
}

.fp-insight-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    color: var(--white);
    margin: 0 0 22px;
    /* Fixed 3-line title block so the eyebrow above + Read More below stay
       at a uniform position across all cards. */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.75em;
}

.fp-insight-readmore {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.fp-insight-card:hover .fp-insight-readmore {
    background: var(--envera-green);
    border-color: var(--envera-green);
    color: var(--white);
}

@media (max-width: 900px) {
    .fp-insights-grid { grid-template-columns: 1fr; gap: 20px; }
    .fp-insight-card { min-height: 320px; }
}

/* --------------------------------------------------------------------------
   CTA SECTION
   -------------------------------------------------------------------------- */
.fp-cta {
    background: var(--gray-900);
    padding: var(--space-4xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fp-cta .cta-content h2 {
    font-size: var(--text-3xl);
    color: var(--white);
    margin-bottom: 14px;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.fp-cta .cta-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.65;
    max-width: 500px;
}

.fp-cta .cta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3xl);
}

.fp-cta .cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .dual-practice-section { padding: 48px 32px; }
    .fp-services-columns { grid-template-columns: 1fr; }
    .fp-services-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hero-stats-inner { flex-wrap: wrap; gap: 24px; }
    .stat-item { flex: 0 0 calc(50% - 12px); border-right: none; margin-right: 0; padding-right: 0; }
}

@media (max-width: 1024px) {
    .dual-practice-inner { grid-template-columns: 1fr; }
    .air-panel { border-right: 1px solid rgba(118, 166, 66, 0.2); border-bottom: none; border-radius: 12px 12px 0 0; }
    .energy-panel { border-radius: 0 0 12px 12px; }
    .approach-grid { grid-template-columns: 1fr; gap: 48px; }
    .fp-cta .cta-grid { flex-direction: column; text-align: center; }
    .fp-cta .cta-content p { margin: 0 auto; }
    .fp-cta .cta-actions { flex-direction: column; width: 100%; }
}

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 60px 0 0; }
    .hero-content-wrap { padding-top: 40px; padding-bottom: 40px; }
    .hero h1 { font-size: 2.4rem; }
    .hero-sub { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn, .hero-actions .btn-ghost-light { width: 100%; justify-content: center; }
    .hero-scroll-indicator { display: none; }
    .hero-stats-bar { padding: 28px 0; }
    .hero-stats-inner { gap: 20px; }
    .stat-item { flex: 0 0 calc(50% - 10px); }
    .stat-num { font-size: 2rem; }
    .practice-panel { padding: 36px 28px; }
    .practice-panel h2 { font-size: 1.6rem; }
    .approach-section { padding: 64px 0; }
    .approach-left h2 { font-size: 2rem; }
    .fp-services { padding: 64px 0; }
    .dual-practice-section { padding: 36px 24px; }
    .approach-step { flex-direction: column; gap: 8px; }
    .step-num { font-size: 1.4rem; width: auto; }
}
