/* ==========================================================================
   Cherry City Gutter Co. — site-specific additions on top of the base theme.
   Keep edits here so the vendor stylesheets stay upgradeable.
   ========================================================================== */

/* --- links that wrap whole cards ----------------------------------------- */
a.card-service,
a.card-project {
    text-decoration: none;
}

a.card-service:hover .service__title,
a.card-project:hover h3 {
    color: var(--accent-color);
}

a.card-service .card-project__cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 600;
}

/* --- inner page banner ---------------------------------------------------- */
.banner-inner__page-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.banner-inner__sub {
    color: var(--accent-color-3);
    font-size: 18px;
    line-height: 1.6em;
    max-width: 760px;
    margin: 0;
}

.banner-inner__list-item span {
    color: var(--accent-color-3);
    opacity: 0.85;
}

.banner-inner__list {
    flex-wrap: wrap;
}

/* --- project grid --------------------------------------------------------- */
.project-grid .card-project {
    min-height: 420px;
    height: 100%;
    background-size: cover;
}

.project-grid .col {
    display: flex;
}

/* --- project detail ------------------------------------------------------- */
.project-detail__scope {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-detail__scope li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.project-detail__scope i {
    color: var(--accent-color);
    margin-top: 5px;
}

.project-detail__gallery-img {
    border-radius: 20px;
    overflow: hidden;
}

.project-detail__gallery-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
}

.project-detail__pager {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.project-detail__meta li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--accent-color-4);
}

.project-detail__meta li strong {
    font-weight: 600;
}

/* --- service detail ------------------------------------------------------- */
.service-detail__price {
    background-color: var(--accent-color-3);
    border-left: 4px solid var(--accent-color);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
}

.service-detail__price i {
    color: var(--accent-color);
    margin-right: 8px;
}

.service-detail__cta-card .btn + .btn {
    margin-top: 10px;
}

/* --- article body --------------------------------------------------------- */
.single-post__list {
    list-style: disc;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-post__body h2 {
    margin-top: 10px;
}

.legal__page-layout {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* --- footer hours --------------------------------------------------------- */
.footer__contact .footer-list li:has(.footer-hours) {
    align-items: flex-start;
}

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 2px;
}

.footer-hours__row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 14px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5em;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-hours__row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.footer-hours__day {
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
}

.footer-hours__time {
    color: var(--accent-color-4);
    opacity: 0.85;
    white-space: nowrap;
}

.footer__contact .footer-list a {
    color: inherit;
}

.footer__contact .footer-list a:hover {
    color: var(--accent-color);
}

/* --- CTA band ------------------------------------------------------------- */
.cta-phone {
    color: var(--secondary);
    text-decoration: underline;
    font-weight: 600;
}

.contact-cta__page-layout p {
    max-width: 640px;
}

/* --- why choose us image -------------------------------------------------- */
.whychooseus__main-image img {
    width: 100%;
    border-radius: 24px;
}

/* --- blog slider footer nav ---------------------------------------------- */
.blog__footer-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* --- misc ---------------------------------------------------------------- */
.maps {
    width: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

.navbar-cta-container .btn i {
    margin-left: 8px;
}

@media screen and (max-width: 991px) {
    .project-grid .card-project {
        min-height: 340px;
    }

    .project-detail__gallery-img img {
        height: 220px;
    }
}

/* --- stacked round avatars: keep them circular inside flex rows ----------- */
.testimonial__reviewer-image img,
.banner-home__reviewer-image img,
.home-reviewer__avatar-image img,
.trustedclients__avatar-group img {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    min-height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial__reviewer-image,
.banner-home__reviewer-image,
.home-reviewer__avatar-image,
.trustedclients__avatar-group {
    flex-wrap: nowrap;
}

/* --- hero: keep the intro copy above the banner photo -------------------- */
.home__page-layout {
    position: relative;
    z-index: 3;
}

.home__banner-cta {
    z-index: 4;
}

/* --- form validation state ----------------------------------------------- */
.form .is-invalid {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 2px rgba(246, 27, 40, 0.15);
}

/* --- footer contact column: no clipped email, top-aligned icons ---------- */
.footer__quicklink.footer__contact {
    width: 23%;
}

.footer__content-intro {
    width: 27%;
}

.footer-list.no-icon-list li {
    align-items: flex-start;
    gap: 12px;
}

.footer-list.no-icon-list .footer-contact__icon {
    flex: 0 0 40px;
    margin-top: 2px;
}

.footer-contact__detail {
    min-width: 0;
    flex: 1 1 auto;
}

.footer-contact__detail-text,
.footer-contact__detail-text a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media screen and (max-width: 991.98px) {
    .footer__quicklink.footer__contact,
    .footer__content-intro {
        width: auto;
    }
}

@media screen and (min-width: 992px) and (max-width: 1199.98px) {
    .footer__content-intro {
        width: 22%;
    }

    .footer__quicklink.footer__contact {
        width: 30%;
    }

    .footer__quicklink {
        min-width: 0;
    }
}

/* ==========================================================================
   Pricing tables on the service pages
   ========================================================================== */
.pricing {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.pricing__table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--accent-color-4);
    border-radius: 18px;
    -webkit-overflow-scrolling: touch;
}

.pricing__table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5em;
    margin: 0;
}

.pricing__table thead th {
    background-color: var(--primary);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    padding: 14px 20px;
    white-space: nowrap;
}

.pricing__table thead th:last-child,
.pricing__table td.pricing__range {
    text-align: right;
}

.pricing__table tbody th {
    font-weight: 500;
    color: var(--primary);
    text-align: left;
    padding: 14px 20px;
}

.pricing__table tbody td {
    padding: 14px 20px;
    color: var(--text-color);
    vertical-align: top;
}

.pricing__table tbody tr + tr th,
.pricing__table tbody tr + tr td {
    border-top: 1px solid var(--accent-color-4);
}

.pricing__table tbody tr:nth-child(even) th,
.pricing__table tbody tr:nth-child(even) td {
    background-color: rgba(0, 0, 0, 0.015);
}

.pricing__unit {
    font-size: 13px;
    white-space: nowrap;
    opacity: 0.8;
}

.pricing__range {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.pricing__included {
    background-color: var(--accent-color-3);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 0;
}

.pricing__included i {
    color: var(--accent-color);
    margin-right: 8px;
}

.pricing__factors h3 {
    margin-bottom: 12px;
}

.pricing__factors ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing__factors li {
    position: relative;
    padding-left: 26px;
}

.pricing__factors li::before {
    content: "\f105";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 8px;
    top: 0;
}

.pricing__note {
    font-size: 13px;
    line-height: 1.7em;
    color: var(--text-color);
    opacity: 0.85;
    margin: 0;
}

.pricing__note a {
    color: var(--accent-color);
    font-weight: 600;
}

/* price cards on the services overview */
.card.card-price {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    justify-content: flex-start;
    background-color: var(--secondary);
    border: 1px solid var(--accent-color-4);
    border-radius: 18px;
    padding: 26px 24px;
    transition: all 0.3s ease;
}

.card.card-price:hover {
    border-color: var(--accent-color);
    transform: translateY(-4px);
}

.price-card__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.price-card__figure {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2em;
    color: var(--accent-color);
}

.price-card__unit {
    font-size: 13px;
    color: var(--text-color);
}

.card.card-price .card-project__cta {
    margin-top: auto;
    padding-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.card.card-price:hover .card-project__cta {
    color: var(--accent-color);
}

@media screen and (max-width: 767.98px) {
    .pricing__table {
        font-size: 14px;
        min-width: 420px;
    }

    .pricing__table thead th,
    .pricing__table tbody th,
    .pricing__table tbody td {
        padding: 12px 14px;
    }
}

/* pricing table becomes a stack of rows on phones instead of scrolling sideways */
@media screen and (max-width: 575.98px) {
    .pricing__table-wrap {
        overflow-x: visible;
    }

    .pricing__table {
        min-width: 0;
    }

    .pricing__table thead {
        display: none;
    }

    .pricing__table,
    .pricing__table tbody {
        display: block;
    }

    .pricing__table tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 12px;
        padding: 14px 16px;
    }

    .pricing__table tbody tr + tr {
        border-top: 1px solid var(--accent-color-4);
    }

    .pricing__table tbody th,
    .pricing__table tbody td {
        display: block;
        padding: 0;
        border: 0 !important;
        background: none !important;
    }

    .pricing__table tbody th {
        flex: 1 0 100%;
        font-weight: 600;
        margin-bottom: 2px;
    }

    .pricing__table tbody td.pricing__unit {
        flex: 0 1 auto;
    }

    .pricing__table tbody td.pricing__range {
        margin-left: auto;
        text-align: right;
    }
}

/* divider inside the mobile popup submenu */
.submenu__divider {
    padding: 6px 0;
}

.submenu__divider span {
    display: block;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}
