/* Service and area pages (tools/pages/gen.py). Loaded after main.css: same tokens, type and
   components (section eyebrows, titles, buttons, FAQ, form); only the page layout lives here. */

.pg-wrap { width: 100%; }   /* full width inside the 6% gutters, aligned with the nav like the home page */

/* ── hero ── */
.pg-hero {
    position: relative;
    padding: 148px 6% 104px;
    background:
        radial-gradient(ellipse 50% 60% at 85% 30%, rgba(19,137,212,0.12), transparent 70%),
        var(--black);
    overflow: hidden;
}
.pg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(19,137,212,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19,137,212,0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to right, rgba(0,0,0,0.7), transparent 60%);
    pointer-events: none;
}
.pg-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 72px;
    align-items: center;
}
.pg-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.pg-crumbs a { color: var(--lime); text-decoration: none; }
.pg-crumbs a:hover { text-decoration: underline; }
.pg-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(46px, 5.4vw, 82px);
    line-height: 0.95;
    letter-spacing: 1px;
    color: var(--white);
    text-wrap: balance;
}
.pg-h1-sub {
    display: block;
    margin-top: 12px;
    font-size: 0.52em;
    letter-spacing: 1.5px;
    color: var(--lime);
}
.pg-lead {
    margin-top: 26px;
    max-width: 520px;
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.75;
    font-weight: 300;
    color: rgba(255,255,255,0.72);
}
.pg-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.pg-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 34px;
    padding: 0;
    list-style: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.pg-trust li { display: inline-flex; align-items: center; gap: 10px; }
.pg-trust li::before { content: ''; width: 7px; height: 7px; background: var(--lime); }
.pg-photo { position: relative; margin: 0; overflow: hidden; border: 1px solid rgba(19,137,212,0.22); }
.pg-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pg-hero .fade-up { animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) forwards; }
.pg-hero .pg-h1 { animation-delay: 0.1s; }
.pg-hero .pg-lead { animation-delay: 0.22s; }
.pg-hero .pg-ctas { animation-delay: 0.34s; }
.pg-hero .pg-trust { animation-delay: 0.44s; }

/* ── intro ── */
.pg-intro { padding: 120px 6%; background: var(--black-mid); }
.pg-intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 88px; align-items: start; }
.pg-intro-body p {
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.85;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}
.pg-intro-body p + p { margin-top: 22px; }
/* links inside the copy: white text, a thin lime underline (the brand accent), lime on hover */
.pg-intro-body a {
    color: var(--white);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--lime);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 200ms ease;
}
@media (hover: hover) { .pg-intro-body a:hover { color: var(--lime); } }
.pg-intro-body a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* ── what we clean / services in the area ── */
.pg-list { padding: 120px 6%; background: var(--black); }
.pg-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 52px;
    border-top: 1px solid rgba(19,137,212,0.22);
    border-left: 1px solid rgba(19,137,212,0.22);
}
.pg-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 30px 34px;
    border-right: 1px solid rgba(19,137,212,0.22);
    border-bottom: 1px solid rgba(19,137,212,0.22);
    color: inherit;
    text-decoration: none;
    transition: background-color 200ms ease;
}
.pg-card-top { display: flex; align-items: center; justify-content: space-between; }
.pg-idx { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--lime); }
.pg-card-icon { width: 30px; height: 30px; fill: var(--lime); }
.pg-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 27px; letter-spacing: 1px; line-height: 1.05; color: var(--white); }
.pg-card p { font-size: 14.5px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,0.64); }
.pg-more {
    margin-top: auto;
    padding-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--lime);
}
.pg-more .ph { width: 15px; height: 15px; fill: currentColor; transition: transform 200ms var(--ease-out, ease); }
@media (hover: hover) {
    a.pg-card:hover { background: rgba(19,137,212,0.07); }
    a.pg-card:hover .pg-more .ph { transform: translateX(4px); }
}

/* ── process ── */
.pg-steps { padding: 120px 6%; background: #020810; border-top: 1px solid rgba(19,137,212,0.14); }
.pg-step-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 52px;
    padding: 0;
    list-style: none;
}
.pg-step-list li { padding-top: 22px; border-top: 2px solid var(--blue); }
.pg-step-list li:last-child { border-top-color: var(--lime); }
.pg-step-n { font-family: var(--font-display); font-size: 46px; line-height: 1; color: rgba(255,255,255,0.18); }
.pg-step-list h3 { margin-top: 14px; font-family: var(--font-display); font-weight: 400; font-size: 26px; letter-spacing: 1px; color: var(--white); }
.pg-step-list p { margin-top: 10px; font-size: 14.5px; line-height: 1.7; font-weight: 300; color: rgba(255,255,255,0.64); }

/* ── more services / areas ── */
.pg-links { padding: 72px 6%; background: var(--black); border-top: 1px solid rgba(19,137,212,0.14); }
.pg-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pg-label {
    display: block;
    margin-bottom: 18px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.16);
    font-size: 14px;
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    transition: border-color 200ms ease, color 200ms ease;
}
.pg-go { width: 14px; height: 14px; fill: var(--lime); }
@media (hover: hover) { .pg-chip:hover { border-color: var(--lime); color: var(--white); } }

/* ── responsive ── */
@media (max-width: 1080px) {
    .pg-cards { grid-template-columns: repeat(2, 1fr); }
    .pg-step-list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 900px) {
    .pg-hero { padding: 116px 6% 72px; }
    .pg-hero-grid, .pg-intro-grid, .pg-links-grid { grid-template-columns: 1fr; gap: 44px; }
    .pg-intro, .pg-list, .pg-steps { padding: 88px 6%; }
}
@media (max-width: 600px) {
    .pg-cards { grid-template-columns: 1fr; }
    .pg-step-list { grid-template-columns: 1fr; }
    .pg-card { padding: 28px 22px 30px; }
    .pg-ctas .btn-red, .pg-ctas .btn-outline { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .pg-hero .fade-up { animation: none; opacity: 1; transform: none; }
}
/* touch targets */
.pg-crumbs a { display: inline-block; padding: 15px 0; margin: -15px 0; }
.pg-chip { min-height: 46px; }
.pg-crumbs a { padding: 15px 4px; margin: -15px -4px; }

/* one rhythm with the home page: every section, the same space above and below (--sec-y, main.css) */
section.pg-intro, section.pg-list, section.pg-steps, section.pg-links {
    padding-top: var(--sec-y);
    padding-bottom: var(--sec-y);
}

/* ── filmed proof (floor scrubbing): approved field reels, the floor before and after ── */
.pg-proof { background: #020810; border-top: 1px solid rgba(19,137,212,0.14); }
section.pg-proof { padding: var(--sec-y) 6%; }
.pg-proof-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; }
.pg-proof-lead {
    margin-top: 24px;
    max-width: 440px;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.8;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}
.pg-reels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg-reel { margin: 0; }
.pg-reel-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0D1B2A;
    border: 1px solid rgba(19,137,212,0.22);
}
.pg-reel-media img,
.pg-reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-reel-media video { opacity: 0; transition: opacity 300ms ease; }
.pg-reel.playing video { opacity: 1; }
.pg-reel-btn {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(7,17,28,0.72);
    color: var(--white);
    cursor: pointer;
    transition: border-color 200ms ease, transform 160ms var(--ease-out, ease);
}
.pg-reel-btn[hidden] { display: none; }
.pg-reel-btn svg { width: 14px; height: 14px; fill: currentColor; }
.pg-reel-btn .i-play, .pg-reel-btn[aria-pressed="true"] .i-pause { display: none; }
.pg-reel-btn[aria-pressed="true"] .i-play { display: inline; }
.pg-reel-btn:active { transform: scale(0.96); }
.pg-reel-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pg-reel-btn:hover { border-color: var(--lime); } }
.pg-reel figcaption { padding-top: 18px; }
.pg-reel h3 { margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: 24px; letter-spacing: 1px; line-height: 1.05; color: var(--white); }
.pg-reel p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; font-weight: 300; color: rgba(255,255,255,0.64); }
@media (max-width: 900px) {
    .pg-proof-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
    .pg-reels { grid-template-columns: 1fr; gap: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .pg-reel-media video { transition: none; }
}

/* ── before/after (facade painting): the home page's slider, inside the page gutters ── */
section.pg-ba { padding: var(--sec-y) 6%; background: var(--black); border-top: 1px solid rgba(19,137,212,0.14); }
.pg-ba-head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px 88px; align-items: end; }
.pg-ba-head .section-eyebrow { grid-column: 1 / -1; }
.pg-ba-head .pg-proof-lead { margin-top: 0; max-width: 520px; }
.pg-ba .ba { margin: 52px 0 0; border: 1px solid rgba(19,137,212,0.22); }

/* a single 9:16 reel beside its heading */
.pg-reel.is-tall .pg-reel-media { aspect-ratio: 9 / 16; }
.pg-proof-grid.is-single { grid-template-columns: 1fr minmax(0, 380px); }
.pg-reels.is-single { grid-template-columns: 1fr; }
@media (max-width: 900px) {
    .pg-ba-head { grid-template-columns: 1fr; }
    .pg-proof-grid.is-single { grid-template-columns: 1fr; }
    .pg-reels.is-single { max-width: 420px; }
}
@media (max-width: 767px) {
    .pg-ba .ba { margin: 40px -6vw 0; border-left: 0; border-right: 0; }   /* edge to edge on phones, like the home page (the gutter is 6% of the viewport) */
}

/* ── hero with a vertical reel (facade painting): the full 9:16 frame, as tall as the screen allows ── */
.pg-hero-grid.has-reel { grid-template-columns: minmax(0, 1fr) auto; }
.pg-photo.is-reel {
    position: relative;
    justify-self: end;
    height: min(76svh, 720px);
    aspect-ratio: 9 / 16;
    background: #0D1B2A;
}
.pg-photo.is-reel img,
.pg-photo.is-reel video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.pg-photo.is-reel video { opacity: 0; transition: opacity 300ms ease; }
.pg-photo.is-reel.playing video { opacity: 1; }
.pg-photo.is-reel .s-card-tag { z-index: 2; }
@media (max-width: 900px) {
    .pg-hero-grid.has-reel { grid-template-columns: 1fr; }
    .pg-photo.is-reel { justify-self: start; height: auto; width: min(100%, 420px); }
}

/* ── drone take (facade painting): the home page's block, inside the page gutters ── */
section.pg-drone { padding: var(--sec-y) 6%; background: #020810; border-top: 1px solid rgba(19,137,212,0.14); }
.pg-drone .ext-story { margin: 52px 0 0; }
.pg-drone .ext-media { border: 1px solid rgba(19,137,212,0.22); }
@media (max-width: 768px) {
    .pg-drone .ext-story { margin: 40px 0 0; }
    .pg-drone .ext-media { margin: 0 -6vw; border-left: 0; border-right: 0; }
    .pg-drone .ext-side { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pg-photo.is-reel video { transition: none; }
}
