/* Helical pile template. Layout and palette follow the Whitman helical pile site:
   safety orange on charcoal, white sections, Inter at heavy weights. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

body { background: var(--pl-paper, #fff); }

.pl {
    --pl-brand: #ff6b00;
    --pl-brand-ink: #1a1a1a;
    --pl-dark: #1a1a1a;
    --pl-paper: #ffffff;
    --pl-soft: #f8f8f8;
    --pl-line: #e0e0e0;
    --pl-text: #333333;
    --pl-muted: #666666;
    background: var(--pl-paper);
    color: var(--pl-text);
    font-family: Inter, -apple-system, "Segoe UI", Arial, sans-serif;
    padding-bottom: 64px;
}

.pl a { color: inherit; }
.pl-wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

.pl-ribbon {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 10px 16px;
    background: #fff8e1;
    border-bottom: 1px solid #f0dc9a;
    color: #3d3005;
    font-size: 0.86rem;
}
.pl-ribbon p { margin: 0; }
.pl-ribbon a { color: #3d3005; font-weight: 600; margin-right: 6px; }
.pl-ribbon-go { white-space: nowrap; }

.pl-head {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 10px 20px;
    background: #fff;
    border-bottom: 1px solid var(--pl-line);
}
.pl-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--pl-dark) !important;
    text-decoration: none;
}
/* A plain mark standing in for the client logo: a pile shaft with one helix plate. */
.pl-logo-mark {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background:
        linear-gradient(var(--pl-dark), var(--pl-dark)) 50% 0 / 4px 100% no-repeat,
        linear-gradient(var(--pl-dark), var(--pl-dark)) 50% 70% / 18px 4px no-repeat,
        var(--pl-brand);
}
.pl-phone {
    font-weight: 700;
    color: var(--pl-dark) !important;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 2px var(--pl-brand);
    white-space: nowrap;
}

.pl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 6px;
    border: 0;
    font: 700 1rem/1 Inter, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.pl-btn-brand { background: var(--pl-brand); color: var(--pl-brand-ink) !important; }
.pl-btn-brand:hover { filter: brightness(0.95); }
.pl-btn-line { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 2px #fff; }
.pl-btn:disabled { opacity: 0.6; cursor: default; }

.pl-hero { background: var(--pl-dark); color: #fff; padding: 48px 0; }
.pl-hero-grid { display: grid; gap: 30px; align-items: center; }
.pl-kicker {
    margin: 0 0 12px;
    color: var(--pl-brand);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.pl h1 {
    font-family: Inter, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0;
    color: #fff;
}
.pl-subhead { color: #d6d6d6; font-size: 1.1rem; margin: 16px 0 0; max-width: 40rem; }
.pl-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pl-badges { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pl-badges li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; }
.pl-badges li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--pl-brand);
    color: var(--pl-brand-ink);
    font-size: 0.75rem;
    font-weight: 800;
}

.pl-slot {
    margin: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    border: 2px dashed var(--pl-line);
    border-radius: 12px;
    color: var(--pl-muted);
    background: var(--pl-soft);
    font-size: 0.9rem;
}
.pl-hero .pl-slot { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.25); color: #bdbdbd; }
.pl-hero-media { aspect-ratio: 4 / 3; }
.pl-reviews-slot { min-height: 160px; }

.pl-band { padding: 56px 0; }
.pl-soft { background: var(--pl-soft); }
.pl-head-block { text-align: center; max-width: 46rem; margin: 0 auto 28px; }
.pl h2 {
    font-family: Inter, sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.15;
    color: var(--pl-dark);
    margin: 0 0 10px;
}
.pl-head-block p { color: var(--pl-muted); margin: 0; font-size: 1.05rem; }

.pl-grid3, .pl-grid4 { display: grid; gap: 18px; }
.pl-card {
    background: #fff;
    border: 1px solid var(--pl-line);
    border-top: 4px solid var(--pl-brand);
    border-radius: 10px;
    padding: 22px;
}
.pl-card h3 { margin: 0 0 8px; color: var(--pl-dark); font-weight: 700; font-size: 1.15rem; }
.pl-card p { margin: 0; color: var(--pl-muted); }
.pl-system-sub { font-weight: 600; color: var(--pl-dark) !important; margin-bottom: 8px !important; font-size: 0.9rem; }
.pl-highlight {
    display: inline-block;
    margin-top: 14px !important;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--pl-dark);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
}
.pl-service a { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--pl-dark) !important; text-decoration-color: var(--pl-brand); text-decoration-thickness: 2px; }

.pl-ps { display: grid; gap: 18px; }
.pl-ps-box { padding: 26px; border-radius: 10px; }
.pl-ps-box h3 { margin: 0 0 10px; font-size: 1.25rem; }
.pl-ps-box p { margin: 0; }
.pl-problem { background: #fdf1ee; border-left: 5px solid #c62828; }
.pl-problem h3 { color: #8e1d1d; }
.pl-solution { background: var(--pl-dark); color: #e6e6e6; border-left: 5px solid var(--pl-brand); }
.pl-solution h3 { color: #fff; }

.pl-local { display: grid; gap: 28px; align-items: start; }
.pl-local p { color: var(--pl-muted); margin: 0 0 18px; }
.pl-faq h3 { margin: 0 0 10px; color: var(--pl-dark); }
.pl-faq details { background: #fff; border: 1px solid var(--pl-line); border-radius: 8px; margin-bottom: 8px; }
.pl-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--pl-dark); min-height: 44px; }
.pl-faq summary:focus-visible { outline: 3px solid var(--pl-brand); outline-offset: 2px; }
.pl-faq details p { padding: 0 16px 14px; margin: 0; }

.pl-callout { background: var(--pl-brand); color: var(--pl-brand-ink); padding: 40px 0; text-align: center; }
.pl-callout h2 { color: var(--pl-brand-ink); }
.pl-callout p { margin: 0; font-weight: 600; }

.pl-contact { display: grid; gap: 28px; align-items: start; }
.pl-contact-info p { color: var(--pl-muted); }
.pl-contact-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 18px 0 0; }
.pl-contact-info dt { font-weight: 700; color: var(--pl-dark); }
.pl-contact-info dd { margin: 0; color: var(--pl-text); }
.pl-contact-info dd a { font-weight: 700; color: var(--pl-dark) !important; }

.pl-form {
    display: grid;
    gap: 6px;
    padding: 24px;
    background: var(--pl-soft);
    border: 1px solid var(--pl-line);
    border-radius: 12px;
}
.pl-form-row { display: grid; gap: 6px 14px; }
.pl-form-row > div { display: grid; gap: 6px; }
.pl-form label { font-weight: 600; font-size: 0.9rem; color: var(--pl-dark); margin-top: 6px; }
.pl-form input, .pl-form select, .pl-form textarea {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    font: 500 1rem Inter, sans-serif;
    background: #fff;
    color: var(--pl-text);
}
.pl-form input:focus, .pl-form select:focus, .pl-form textarea:focus { outline: 3px solid var(--pl-brand); outline-offset: 1px; }
.pl-form button { margin-top: 12px; }
.pl-form-note { margin: 8px 0 0; padding: 10px 12px; border-radius: 6px; background: #ecfdf3; color: #0f5132; font-weight: 600; }

.pl-foot { background: var(--pl-dark); color: #bdbdbd; text-align: center; padding: 28px 16px; font-size: 0.88rem; }
.pl-foot p { margin: 0 0 6px; }
.pl-foot strong { color: #fff; }
.pl-foot a { color: var(--pl-brand) !important; }

.pl-callbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 8px;
    background: var(--pl-brand);
    color: var(--pl-brand-ink) !important;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 560px) {
    .pl-phone { display: none; }
}

@media (min-width: 761px) {
    .pl { padding-bottom: 0; }
    .pl-callbar { display: none; }
    .pl-form-row { grid-template-columns: 1fr 1fr; }
    .pl-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    .pl-hero-grid { grid-template-columns: 1.1fr 1fr; }
    .pl-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pl-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .pl-ps { grid-template-columns: 1fr 1fr; }
    .pl-local { grid-template-columns: 1fr 1fr; }
    .pl-contact { grid-template-columns: 1fr 1.1fr; }
}

/* Keep the corner assistant above the phone call bar on small screens. */
@media (max-width: 760px) {
    .pl .ee-corner { bottom: 76px; }
    .pl .ee-corner-panel { max-height: calc(100vh - 190px); }
}

/* Photos */
.pl-hero-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #2a2a2a;
}
.pl-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pl-card { overflow: hidden; }
.pl-card-img {
    display: block;
    width: calc(100% + 44px);
    max-width: none;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin: -22px -22px 16px;
}
.pl figcaption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(26, 26, 26, 0.8);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
}
.pl-credit { font-size: 0.76rem; max-width: 60rem; margin: 6px auto 0 !important; line-height: 1.5; }
.pl-credit a { color: #e0e0e0 !important; }
