/* San Jose porta potty landing page (/toilet-rental/san-jose)
   Pricing table + use-case grid. Reuses shared component sections
   (benefits, reviews, faq, ready-to-book) for everything else. */

/* The shared how-it-works.css uses padding: 160px 0 (100px tablet / 80px
   mobile), which leaves a large empty band above and below this section on
   the San Jose page. Scope a tighter rhythm that matches the page's other
   sections (~80px) without touching the global component used elsewhere. */
.toilet-san-jose-page .how-it-works-section {
    padding: 80px 0;
}

@media screen and (max-width: 959px) {
    .toilet-san-jose-page .how-it-works-section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 599px) {
    .toilet-san-jose-page .how-it-works-section {
        padding: 48px 0;
    }

    /* The shared component stacks the 4 steps into one tall column on phones.
       Lay them out 2x2 instead to cut scrolling and use the width. */
    .toilet-san-jose-page .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg, 24px) var(--spacing-md, 16px);
    }

    .toilet-san-jose-page .process-step {
        max-width: none;
        margin: 0;
    }
}

/* The shared service-area and reviews components carry 160px paddings (via
   the .toilet-page rules baked into site.min.css), which leave large empty
   bands between sections on this page — especially stacked on mobile. Bring
   them into the page's ~80/60/40 rhythm. Scoped to .toilet-san-jose-page and
   loaded after the bundle, so equal-specificity rules win here only and the
   hub/city pages are untouched. */
.toilet-san-jose-page .service-area-section,
.toilet-san-jose-page .reviews-section {
    padding: 80px 0;
}

@media screen and (max-width: 959px) {
    .toilet-san-jose-page .service-area-section,
    .toilet-san-jose-page .reviews-section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 599px) {
    .toilet-san-jose-page .service-area-section,
    .toilet-san-jose-page .reviews-section {
        padding: 40px 0;
    }
}

/* Hero refinements — scoped to this page so the shared toilet-hero.css
   (also used by /toilet-rental) is untouched. The San Jose headline is
   longer than the hub's, so the fixed-height mobile hero cramped the copy
   and pinned the CTAs to the bottom edge. Let the hero grow with its
   content and give the text real side padding. */
@media screen and (max-width: 959px) {
    .toilet-san-jose-page .toilet-hero-section {
        height: auto;
        min-height: 480px;
        max-height: none;
        padding: 64px 0;
    }
}

@media screen and (max-width: 599px) {
    .toilet-san-jose-page .toilet-hero-section {
        min-height: 420px;
        padding: 48px 0;
    }

    .toilet-san-jose-page .toilet-hero-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .toilet-san-jose-page .toilet-hero-title {
        font-size: 30px;
        line-height: 1.2;
    }

    .toilet-san-jose-page .toilet-hero-description {
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: var(--spacing-lg);
    }

    /* Stack the two CTAs so neither gets squeezed on narrow screens. */
    .toilet-san-jose-page .toilet-hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .toilet-san-jose-page .toilet-hero-cta .btn-primary,
    .toilet-san-jose-page .toilet-hero-cta .btn-secondary {
        width: 100%;
        max-width: 320px;
    }
}

.san-jose-pricing-section {
    padding: var(--spacing-xxl, 48px) 0;
    background-color: var(--bg-gray, #FAFAFA);
}

.san-jose-pricing-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--spacing-xl, 32px);
}

.san-jose-pricing-header .h2 {
    margin-bottom: var(--spacing-md, 16px);
}

/* Table -------------------------------------------------------------- */
.san-jose-pricing-table-wrap {
    max-width: 860px;
    margin: 0 auto;
    overflow-x: auto;
}

.san-jose-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white, #FFFFFF);
    border: 1px solid var(--border-light, #E5E5E5);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
}

.san-jose-pricing-table th,
.san-jose-pricing-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-lighter, #EEEEEE);
    font-size: 16px;
    color: var(--text-dark, #212121);
}

.san-jose-pricing-table thead th {
    background-color: var(--primary-blue-faq, #20469B);
    color: var(--text-light, #F5F5F5);
    font-weight: 700;
    border-bottom: none;
}

.san-jose-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.san-jose-pricing-table tbody tr:nth-child(even) {
    background-color: var(--bg-gray, #FAFAFA);
}

.san-jose-pricing-table td:last-child strong {
    color: var(--primary-green, #00A859);
    font-size: 18px;
}

/* Notes -------------------------------------------------------------- */
.san-jose-pricing-note {
    max-width: 860px;
    margin: var(--spacing-lg, 24px) auto 0;
}

.san-jose-pricing-note p {
    margin-bottom: var(--spacing-sm, 8px);
    color: var(--text-gray, #6c757d);
}

/* Use-case grid ------------------------------------------------------ */
.san-jose-usecase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg, 24px);
}

.san-jose-usecase-card {
    background-color: var(--bg-white, #FFFFFF);
    border: 1px solid var(--border-light, #E5E5E5);
    border-radius: var(--radius-md, 8px);
    padding: var(--spacing-lg, 24px);
    text-align: center;
}

.san-jose-usecase-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md, 16px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 8px);
    background-color: rgba(0, 168, 89, 0.1);
    color: var(--primary-green, #00A859);
}

.san-jose-usecase-icon .material-symbols-outlined {
    font-size: 30px;
    line-height: 1;
}

.san-jose-usecase-card .h4 {
    margin-bottom: var(--spacing-sm, 8px);
    color: var(--text-dark, #212121);
}

.san-jose-usecase-card p {
    color: var(--text-gray, #6c757d);
}

/* Responsive --------------------------------------------------------- */
@media screen and (max-width: 1279px) {
    .san-jose-usecase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 599px) {
    /* Keep a 2x2 layout on phones so all four use cases stay above the fold
       and the section scrolls less. */
    .san-jose-usecase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md, 16px);
    }

    .san-jose-usecase-card {
        padding: var(--spacing-md, 16px);
    }

    .san-jose-usecase-icon {
        width: 44px;
        height: 44px;
        margin-bottom: var(--spacing-sm, 8px);
    }

    .san-jose-usecase-icon .material-symbols-outlined {
        font-size: 24px;
    }

    /* Stack the pricing table into labelled rows on mobile. */
    .san-jose-pricing-table thead {
        display: none;
    }

    .san-jose-pricing-table,
    .san-jose-pricing-table tbody,
    .san-jose-pricing-table tr,
    .san-jose-pricing-table td {
        display: block;
        width: 100%;
    }

    .san-jose-pricing-table tr {
        border-bottom: 1px solid var(--border-light, #E5E5E5);
        padding: 8px 0;
    }

    .san-jose-pricing-table tbody tr:nth-child(even) {
        background-color: transparent;
    }

    .san-jose-pricing-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: none;
        padding: 6px 16px;
    }

    .san-jose-pricing-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--text-dark, #212121);
        margin-right: 16px;
    }
}
