/* ==========================================================================
   Site Pages — shared styles for every inner page (Products, Services,
   Projects, About, Blog, Gallery, Testimonials, Contact, Quote).
   Loaded globally (see layouts/app.blade.php) after style.css, so it can
   safely build on top of Bootstrap variables (--bs-primary, etc).
   Every rule below is scoped to a "pg-" prefix used consistently across
   the inner-page blade views — this file is their single source of truth.
   ========================================================================== */

:root {
    --pg-primary: var(--bs-primary, #018132);
    --pg-primary-dark: #045c26;
    --pg-ink: #1c2b23;
    --pg-muted: #6c7a7b;
}

/* ---- Section rhythm ---------------------------------------------------- */
.pg-section { padding: 4.5rem 0; }
.pg-section-sm { padding: 3rem 0; }

/* No gap between the green page-header banner and whatever section
   immediately follows it — top padding only, bottom padding (and any
   later section-to-section spacing) is untouched. */
.page-header + .pg-section,
.page-header + .pg-section-sm {
    padding-top: 0;
}

.pg-eyebrow {
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    color: var(--pg-primary);
    background: rgba(1, 129, 50, .08);
    padding: 5px 16px;
    border-radius: 50rem;
    margin-bottom: 10px;
}

.pg-title {
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--pg-ink);
    font-size: calc(1.5rem + 1vw);
}

.pg-lead {
    color: var(--pg-muted);
    max-width: 680px;
    font-size: 1.05rem;
}

/* ---- Scroll-reveal (driven by IntersectionObserver in layouts/app) ----- */
.pg-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.pg-fade.in-view { opacity: 1; transform: translateY(0); }

/* ---- Generic content card (forms, info blocks) ------------------------- */
.pg-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .05);
}
.pg-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 129, 50, .1);
    color: var(--pg-primary);
    font-size: 26px;
    margin-bottom: .9rem;
}

.pg-check-list { list-style: none; padding: 0; margin: 0; }
.pg-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .35rem 0;
    color: var(--pg-ink);
}
.pg-check-list li i { color: var(--pg-primary); margin-top: .2rem; flex-shrink: 0; }

/* ---- Product cards (Products index / show) ------------------------------ */
.pg-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
    border: 1px solid rgba(0, 0, 0, .05);
    transition: transform .35s ease, box-shadow .35s ease;
}
.pg-product-card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(0, 0, 0, .12); }
.pg-product-img { height: 220px; overflow: hidden; }
.pg-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pg-product-card:hover .pg-product-img img { transform: scale(1.08); }
.pg-product-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--pg-primary);
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    padding: 5px 12px;
    border-radius: 50rem;
}

/* ---- Final CTA banner --------------------------------------------------- */
.pg-final-cta {
    background: linear-gradient(120deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
}

/* ---- Contact info cards (Contact page) ---------------------------------- */
.pg-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pg-contact-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
.pg-contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto .9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 129, 50, .1);
    color: var(--pg-primary);
    font-size: 26px;
}
.pg-map-frame { border-radius: 16px; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); }
.pg-map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---- Gallery ------------------------------------------------------------ */
.pg-gallery-item {
    display: block;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 220px;
}
.pg-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pg-gallery-item:hover img { transform: scale(1.12); }
.pg-gallery-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    background: rgba(0, 20, 8, .65);
    color: #fff;
    font-size: 12px;
    letter-spacing: .5px;
    padding: 5px 12px;
    border-radius: 50rem;
}

/* ---- Media cards (Projects) ---------------------------------------------- */
.pg-media-card { position: relative; border-radius: 16px; overflow: hidden; height: 320px; }
.pg-media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pg-media-card:hover img { transform: scale(1.1); }
.pg-media-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 20, 8, .92) 0%, rgba(0, 20, 8, .2) 55%, rgba(0, 20, 8, 0) 100%);
}

/* ---- News / blog cards ---------------------------------------------------- */
.pg-news-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: transform .35s ease, box-shadow .35s ease;
}
.pg-news-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .1); }
.pg-news-img { height: 200px; overflow: hidden; }
.pg-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pg-news-card:hover .pg-news-img img { transform: scale(1.08); }
.pg-news-date {
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--pg-primary);
    font-weight: 700;
}

/* ---- Team cards (About > Team) -------------------------------------------- */
.pg-team-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pg-team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 0, 0, .08); }
.pg-team-photo { height: 260px; overflow: hidden; }
.pg-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.pg-team-role { color: var(--pg-primary); font-weight: 600; font-size: .9rem; }
.pg-team-bio-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 700;
    color: var(--pg-primary);
    text-decoration: none;
}
.pg-team-bio-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.pg-team-bio-toggle i { transition: transform .3s ease; }

/* ---- Team — Signature Cards layout (default) ------------------------------- */
.pg-sig-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: #0d1a12;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
}
.pg-sig-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .4s ease;
}
.pg-sig-card:hover .pg-sig-photo { transform: scale(1.04); }
.pg-sig-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--pg-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    cursor: pointer;
    z-index: 3;
    transition: background .2s ease;
}
.pg-sig-toggle:hover { background: var(--pg-primary-dark); }
.pg-sig-social {
    position: absolute;
    top: 38px;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--pg-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    z-index: 2;
}
.pg-sig-social.active { opacity: 1; visibility: visible; transform: translateY(0); }
.pg-sig-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .25);
}
.pg-sig-social a:hover { background: rgba(0, 0, 0, .18); }
.pg-sig-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem 1.15rem;
    background: linear-gradient(180deg, rgba(4, 20, 10, 0) 0%, rgba(3, 15, 8, .93) 100%);
    border-left: 4px solid var(--pg-primary);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: .5rem;
}
.pg-sig-role {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #bdf5cf;
    margin-bottom: 2px;
}
.pg-sig-name { font-size: 1.02rem; font-weight: 800; color: #fff; line-height: 1.2; margin: 0; }
.pg-sig-cv-btn {
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .4);
    color: #fff;
    padding: .35rem .65rem;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 5px;
    white-space: nowrap;
    transition: all .2s ease;
}
.pg-sig-cv-btn:hover { background: #fff; color: var(--pg-ink); }
.pg-sig-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 15, 8, .72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 1080;
    padding: 1rem;
}
.pg-sig-modal-overlay.active { opacity: 1; visibility: visible; }
.pg-sig-modal-box {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.pg-sig-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--pg-muted);
    cursor: pointer;
}
.pg-sig-modal-box h3 { font-weight: 800; color: var(--pg-ink); margin-bottom: .25rem; padding-right: 2rem; font-size: 1.5rem; }
.pg-sig-modal-role {
    color: var(--pg-primary);
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    padding-bottom: .75rem;
}
.pg-sig-modal-box p { color: var(--pg-muted); font-size: .95rem; line-height: 1.7; margin-bottom: 1rem; }
.pg-sig-modal-box p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .pg-sig-card { aspect-ratio: 4 / 5; }
}

/* ---- Team — Modern Spotlight layout ---------------------------------------- */
.pg-spot-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}
.pg-spot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.pg-spot-card:hover img,
.pg-spot-card.pg-spot-open img { transform: scale(1.06); }
.pg-spot-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(4,20,10,0) 40%, rgba(3,15,8,.94) 100%);
    color: #fff;
}
.pg-spot-role {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #bdf5cf;
    margin-bottom: 2px;
}
.pg-spot-name { font-weight: 800; font-size: 1.15rem; margin-bottom: 0; }
.pg-spot-bio {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .4s ease, opacity .3s ease, margin-top .3s ease;
    font-size: .82rem;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}
.pg-spot-card:hover .pg-spot-bio,
.pg-spot-card.pg-spot-open .pg-spot-bio {
    max-height: 160px;
    opacity: 1;
    margin-top: .6rem;
    overflow-y: auto;
}
.pg-spot-social {
    display: flex;
    gap: .5rem;
    margin-top: .75rem;
}
.pg-spot-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: .85rem;
    transition: background .2s ease;
}
.pg-spot-social a:hover { background: var(--pg-primary); }
.pg-spot-tap-hint {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    backdrop-filter: blur(2px);
}
@media (hover: hover) { .pg-spot-tap-hint { display: none; } }

/* ---- Team — Executive Editorial layout ------------------------------------- */
.pg-exec-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
}
.pg-exec-row:first-child { padding-top: 0; }
.pg-exec-row:last-child { border-bottom: 0; }
.pg-exec-row.pg-exec-reverse { flex-direction: row-reverse; }
.pg-exec-photo {
    flex: 0 0 300px;
    width: 300px;
    height: 340px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.pg-exec-photo img { width: 100%; height: 100%; object-fit: cover; }
.pg-exec-index {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,.92);
    color: var(--pg-primary);
    font-weight: 800;
    font-size: .8rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pg-exec-body { flex: 1 1 auto; min-width: 0; }
.pg-exec-name { font-weight: 800; font-size: 1.4rem; color: var(--pg-ink); margin-bottom: 2px; }
.pg-exec-role {
    color: var(--pg-primary);
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding-bottom: .5rem;
    border-bottom: 2px solid rgba(1,129,50,.2);
}
.pg-exec-bio p { color: var(--pg-muted); font-size: .96rem; line-height: 1.75; margin-bottom: .85rem; }
.pg-exec-bio p:last-child { margin-bottom: 0; }
.pg-exec-social { display: flex; gap: .6rem; margin-top: 1rem; }
.pg-exec-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1,129,50,.08);
    color: var(--pg-primary);
    transition: background .2s ease, color .2s ease;
}
.pg-exec-social a:hover { background: var(--pg-primary); color: #fff; }
@media (max-width: 767.98px) {
    .pg-exec-row, .pg-exec-row.pg-exec-reverse { flex-direction: column; gap: 1.5rem; }
    .pg-exec-photo { width: 100%; flex-basis: auto; height: 280px; }
}

/* ---- Testimonials ---------------------------------------------------------- */
.pg-testimonial-card {
    background: #f4f5f7;
    border-radius: 14px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, .04);
}
.pg-testimonial-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.pg-testimonial-avatar { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.pg-testimonial-name { font-size: 1.1rem; font-weight: 700; color: #1f2937; }
.pg-testimonial-role { font-size: .92rem; color: #2f9e6e; font-weight: 500; }
.pg-testimonial-stars { color: #8bc34a; font-size: .8rem; letter-spacing: 2px; margin-bottom: .9rem; }
.pg-testimonial-quote { color: #33538c; font-size: .95rem; line-height: 1.7; text-align: justify; }

/* ==========================================================================
   Quote form — professional layout used on /quote
   ========================================================================== */
.pg-quote-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .08);
    border: 1px solid rgba(0, 0, 0, .05);
}
.pg-quote-form-card .form-label { font-size: .85rem; }
.pg-quote-form-card .form-control,
.pg-quote-form-card .form-select {
    padding: .65rem .9rem;
    border-radius: 10px;
    border-color: rgba(0, 0, 0, .12);
}
.pg-quote-form-card .form-control:focus,
.pg-quote-form-card .form-select:focus {
    border-color: var(--pg-primary);
    box-shadow: 0 0 0 .2rem rgba(1, 129, 50, .15);
}
.pg-quote-side {
    background: linear-gradient(150deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    border-radius: 20px;
    padding: 2.25rem;
    color: #fff;
    height: 100%;
}
.pg-quote-side .pg-quote-step {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin-bottom: 1.35rem;
}
.pg-quote-side .pg-quote-step:last-child { margin-bottom: 0; }
.pg-quote-side .pg-quote-step-num {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
}
.pg-quote-side hr { border-color: rgba(255, 255, 255, .25); }
.pg-quote-side .pg-quote-contact a { color: #fff; text-decoration: none; opacity: .9; }
.pg-quote-side .pg-quote-contact a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
    .pg-section { padding: 3.25rem 0; }
    .pg-section-sm { padding: 2.25rem 0; }
    .pg-quote-side { margin-top: 1.5rem; }
}

@media (max-width: 767.98px) {
    .pg-section { padding: 2.5rem 0; }
    .pg-section-sm { padding: 2rem 0; }
    .pg-title { font-size: calc(1.35rem + .8vw); }
    .pg-lead { font-size: .95rem; }
    .pg-card,
    .pg-quote-form-card,
    .pg-quote-side { padding: 1.5rem; border-radius: 16px; }
    .pg-product-img,
    .pg-news-img { height: 190px; }
    .pg-team-photo { height: 220px; }
    .pg-media-card { height: 260px; }
    .pg-gallery-item { height: 180px; }
    .pg-final-cta { border-radius: 18px; }
    .pg-map-frame iframe { min-height: 260px; }
}

@media (max-width: 575.98px) {
    .pg-section { padding: 2rem 0; }
    .pg-card,
    .pg-quote-form-card,
    .pg-quote-side { padding: 1.25rem; }
    .pg-product-img,
    .pg-news-img { height: 170px; }
    .pg-eyebrow { font-size: 11px; padding: 4px 12px; }
}