/* Public homepage. All content is visible without scripts or reveal effects. */
.homepage { padding: 0; }
.home-section { padding-block: clamp(4rem, 7vw, 7rem); scroll-margin-top: 0; }
.home-section h2 { max-width: 22ch; }
.section-heading { max-width: 48rem; margin-bottom: 3rem; }
.section-heading > p:last-child { max-width: 40rem; color: #526157; }
.section-heading-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; }
.eyebrow { margin-bottom: 1rem; color: var(--ecosafe-green); font-size: .72rem; font-weight: 700; letter-spacing: .18em; line-height: 1.6; }
.section-soft { background: var(--ecosafe-grey); }
.section-dark { background: var(--ecosafe-black); color: #d5ded8; }
.section-dark h2, .section-dark h3 { color: var(--ecosafe-white); }
.section-dark .eyebrow { color: var(--ecosafe-green-bright); }
.text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.link-arrow { display: inline-block; transition: transform 180ms ease; }
.text-link:hover .link-arrow { transform: translate(3px, -3px); }
/* Unified desktop stage: media never participates in document layout. */
.hero-slider { max-width: 1224px; margin-inline: auto; --ecosafe-stage-height: min(41.658vw, 510px); position: relative; isolation: isolate; overflow: hidden; background: var(--ecosafe-black); color: var(--ecosafe-white); }
.hero-slides { position: relative; height: var(--ecosafe-stage-height); }
.hero-slide { position: absolute; inset: 0; isolation: isolate; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; }
.hero-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; background: var(--ecosafe-black); }
.hero-media::after { z-index: 2; content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,6,.3), rgba(5,7,6,.08) 40%, transparent 65%); }
.hero-media .ecosafe-media { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: center center; }
.hero-media .ecosafe-image-placeholder { width: 100%; height: 100%; border: 0; }
.hero-content { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; min-height: 0; padding: 20px 0 42px; padding-left: 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-content > * { width: min(520px, 44vw); }
.hero-content .eyebrow { color: #b8d7c3; margin-bottom: .65rem; }
.hero-heading { max-width: none; color: var(--ecosafe-white); font-size: clamp(32px, 3.3vw, 48px); line-height: 1.03; letter-spacing: -.04em; font-weight: 500; margin-bottom: .8rem; }
.hero-description { max-width: 43ch; color: #edf2ee; font-size: 1rem; line-height: 1.5; margin-bottom: 0; }
.hero-content .cta-actions { margin-top: 1rem; }
.hero-controls { position: absolute; z-index: 5; inset-inline: 0; bottom: 10px; width: max-content; max-width: calc(100% - 2rem); padding: 0; border: 0; background: transparent; }
.slider-indicators { display: flex; gap: 0; }
.hero-controls button { width: 32px; min-width: 32px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ecosafe-white); }
.slider-indicators button span { font-size: 0; }
.slider-indicators button::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.65); }
.slider-indicators [aria-current="true"]::after { background: var(--ecosafe-green-bright); }
/* Only images blend beneath the incoming content; outgoing copy is hidden. */
.slider-ready .hero-slide { transition: opacity 700ms ease; }
.slider-ready .hero-slide.is-active { z-index: 2; }
.slider-ready .hero-slide.is-entering { opacity: 0; }
.slider-ready .hero-slide.is-leaving { transition: none; opacity: 1; visibility: visible; pointer-events: none; z-index: 1; }
.hero-slide.is-leaving .hero-content { visibility: hidden; }
@media (max-width: 47.99rem) {
    .hero-slider { max-width: 1224px; margin-inline: auto; --ecosafe-stage-height: 560px; --ecosafe-mobile-image-height: 200px; }
    .hero-media { height: var(--ecosafe-mobile-image-height); }
    .hero-media::after { background: linear-gradient(0deg, var(--ecosafe-black), transparent 25%); }
    .hero-media .ecosafe-media { position: absolute; inset: 0; z-index: 1; object-fit: cover; object-position: 90% 50%; }
    .focal-nature .hero-media img { object-position: 100% 50%; }
    .focal-inspection .hero-media img { object-position: 90% 50%; }
    .focal-raccoon .hero-media img { object-position: 100% 30%; }
    .focal-perimeter .hero-media img { object-position: 100% 60%; }
    .focal-residential .hero-media img { object-position: 100% 50%; }
    .focal-commercial .hero-media img { object-position: 100% 50%; }
    .hero-content { inset: var(--ecosafe-mobile-image-height) 0 0; height: auto; min-height: 0; padding: 20px 16px 60px; justify-content: flex-start; }
    .hero-content > * { width: 100%; }
    .hero-heading { font-size: clamp(2rem, 5vw, 2.8rem); max-width: 22ch; }
    .hero-description { max-width: 44ch; }
    .hero-content .eyebrow { font-size: .65rem; }
}
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.content-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #dce4dd; background: var(--ecosafe-white); transition: border-color 180ms ease, box-shadow 180ms ease; }
.content-card:hover, .content-card:focus-within { border-color: #759c81; box-shadow: 0 8px 24px #073d1510; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: #0d1811; }
.card-media > * { position: absolute; inset: 0; }
.card-media .ecosafe-media { width: 100%; height: 100%; object-fit: contain; } /* Approved card assets remain entirely visible. */
.card-media .ecosafe-image-placeholder { width: 100%; height: 100%; border: 0; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.card-copy h3 { font-size: 1.2rem; }
.card-copy p { color: #536157; font-size: .95rem; }
.card-copy .text-link { margin-top: auto; padding-top: .65rem; }
.services-section .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-section .card-media { aspect-ratio: 2 / 1; }
.editorial-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.editorial-copy p:not(.eyebrow) { color: #526157; }
.editorial-media { min-width: 0; background: #0c1810; }
.editorial-media img { width: 100%; height: auto; } /* No cropping of editorial images. */
.image-caption { margin: 0; padding: 1.5rem; color: #c6d8cc; font-size: .85rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; list-style: none; padding: 0; margin: 0; }
.values-grid li { border-top: 1px solid #3b4a40; padding-top: 2rem; }
.values-grid h3 { max-width: 23ch; font-weight: 500; margin-top: 1.25rem; }
.check-icon { position: relative; display: inline-block; width: 36px; height: 36px; border: 1px solid #42684e; border-radius: 50%; }
.check-icon::after { position: absolute; content: ""; width: 12px; height: 7px; border-left: 2px solid var(--ecosafe-green-bright); border-bottom: 2px solid var(--ecosafe-green-bright); transform: rotate(-45deg); top: 11px; left: 10px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; list-style: none; padding: 0; margin: 0; }
.process-grid li { border-top: 1px solid #aebeb2; padding-top: 2rem; }
.step-number { display: block; font-size: 3rem; color: var(--ecosafe-green); font-weight: 300; line-height: 1; margin-bottom: 2rem; }
.process-grid p { max-width: 30ch; color: #526157; }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.property-card { background: var(--ecosafe-black); color: #d5ded8; }
.property-media { aspect-ratio: 2.4 / 1; }
.property-media img { width: 100%; height: 100%; object-fit: contain; }
.property-copy { padding: clamp(1.5rem, 3vw, 3rem); }
.property-copy h3 { color: var(--ecosafe-white); font-size: 1.8rem; }
.property-copy .eyebrow { color: var(--ecosafe-green-bright); }
.area-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.area-links { list-style: none; padding: 0; }
.area-links .text-link { display: flex; border-bottom: 1px solid #c3d1c7; padding-block: .75rem; }
.reviews-shell { border-block: 1px solid #dce4dd; padding-block: 2.5rem; text-align: center; }
.reviews-shell h2 { max-width: none; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 400; color: #526157; margin: 0; }
.quote-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.quote-copy { padding-top: 1rem; }
.quote-copy h2 { max-width: 13ch; font-size: clamp(2.8rem, 4.5vw, 4.5rem); }
.quote-panel { border: 1px solid #3e5044; padding: clamp(1.25rem, 3vw, 2.5rem); }
.quote-form { display: grid; gap: .65rem; }
.quote-form label { font-size: .875rem; }
.quote-form input, .quote-form textarea { width: 100%; background: #101c14; border-color: #667b6b; color: var(--ecosafe-white); }
.quote-form textarea { resize: vertical; }
.quote-form button { margin-top: .8rem; }
.quote-form > p { font-size: .8rem; color: #b7c9bc; }
.quote-form a { color: var(--ecosafe-white); }
@media (min-width: 48rem) and (max-width: 74.99rem) {
	.card-grid, .services-section .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 47.99rem) {
	.card-grid, .services-section .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
	.card-copy { padding: 1rem; }
	.section-heading-row { flex-direction: column; align-items: start; gap: .75rem; }
	.editorial-split, .property-grid, .area-layout, .quote-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
	.process-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
	.process-grid li { display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
	.step-number { grid-row: span 2; font-size: 2rem; }
	.process-grid p { max-width: none; }
}
@media (max-width: 29.99rem) {
	.card-grid, .services-section .card-grid { grid-template-columns: minmax(0, 1fr); }
	.values-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.link-arrow { transition: none; }
}

.section-photo { max-width: 48rem; margin: 0 0 2.5rem; }
.section-photo img, .final-cta-image img { width: 100%; height: auto; }
@media (min-width: 48rem) and (max-width: 62rem) { .hero-content .eyebrow { font-size: .6rem; } .hero-description { font-size: .85rem; } .hero-content .button { padding: .65rem .8rem; font-size: .7rem; min-height: 44px; } }

@media (max-width: 47.99rem) {
	.hero-content .cta-actions { flex-wrap: nowrap; gap: .5rem; }
	.hero-content .button { font-size: .65rem; letter-spacing: .025em; padding: .65rem .7rem; min-height: 44px; }
	.hero-slider { --ecosafe-stage-height: 570px; }
}
