/* ==========================================================================
   Hayward-only override: keep the dumpster-sizes section heading on one line.
   The shared rule in components/dumpster-sizes.css applies `padding: 0 96px`
   to .dumpster-sizes-title, which constrains the text width and forces the
   long Hayward heading to wrap. Drop the side padding and forbid wrapping
   on wide-enough screens; let it wrap naturally below 1100px so we never
   overflow the container. This file is only loaded on the Hayward page,
   so other cities are unaffected.
   ========================================================================== */

.dumpster-sizes-title {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    white-space: nowrap;
}

@media screen and (max-width: 1100px) {
    .dumpster-sizes-title {
        white-space: normal;
    }
}


/* ==========================================================================
   Hayward Service-Area Page — Hayward-only sections.
   Loaded conditionally from Service/Index.cshtml when SpecialContentType == "Hayward".
   Covers:
     - .hayward-pricing-section       (full 2026 pricing table + notes)
     - .hayward-projects-section      (4-card "Projects We Handle Every Week")
     - .hayward-recycling-note        (Davis Street trust callout)
     - .ready-to-book-spanish         (Hablamos Español line in the existing Ready-to-Book section)
   ========================================================================== */


/* ==========================================================================
   Hayward Pricing Table
   ========================================================================== */

.hayward-pricing-section {
    background-color: var(--bg-gray);
    padding: 80px 0;
}

.hayward-pricing-section .main-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hayward-pricing-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hayward-pricing-header .h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.hayward-pricing-header .body-1 {
    color: var(--text-dark);
    opacity: 0.85;
    max-width: 760px;
    margin: 0 auto;
}

/* Table wrapper: full width of its container, white card with shadow.
   overflow-x lets the table scroll horizontally on very narrow viewports
   instead of mangling the layout. */
.hayward-pricing-table-wrapper {
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    margin: 0 auto var(--spacing-xl);
}

.hayward-pricing-table {
    width: 100%;
    border-collapse: separate;   /* separate so we can round corners + tight borders */
    border-spacing: 0;
    min-width: 560px;
    table-layout: fixed;          /* predictable column widths */
}

/* Column proportions: small Dumpster, generous Best For, compact Price. */
.hayward-pricing-table colgroup col:nth-child(1),
.hayward-pricing-table thead th:nth-child(1) { width: 22%; }
.hayward-pricing-table thead th:nth-child(2) { width: 50%; }
.hayward-pricing-table thead th:nth-child(3) { width: 28%; }

/* Column header row (Dumpster / Best For / Hayward Price).
   Centered to match the body cell alignment; price stays right-aligned
   for clean number alignment. */
.hayward-pricing-table thead th {
    padding: 18px 24px;
    text-align: center;
    color: var(--text-dark);
    background: var(--bg-white);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--border-light);
}

.hayward-pricing-table thead th:last-child {
    text-align: right;
}

/* Section group rows ("General Debris ·" / "Inert Material ·").
   Renders as a banner that splits the two categories visually. */
.hayward-pricing-group-row th {
    background: var(--primary-green);
    color: var(--text-light);
    padding: 12px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: none;
}

/* Body cells. Default center alignment so the size badge and best-for
   text sit under their centered headers. Price stays right-aligned. */
.hayward-pricing-table tbody td {
    padding: 18px 24px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    font-size: 16px;
    text-align: center;
}

/* Last row in each section: no bottom border (group rows act as dividers). */
.hayward-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Zebra-stripe data rows (subtle — never on group rows). */
.hayward-pricing-table tbody tr:not(.hayward-pricing-group-row):nth-of-type(even) td {
    background-color: var(--bg-gray);
}

/* Hover state on data rows. */
.hayward-pricing-table tbody tr:not(.hayward-pricing-group-row):hover td {
    background-color: #e8f5e9;   /* very light green tint to match the brand */
    transition: background-color 0.15s ease;
}

/* Size badge — the "5 yd / 10 yd / etc." label.
   Makes the size scannable and visually anchored on the left. */
.hayward-pricing-size {
    display: inline-block;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    min-width: 56px;
    text-align: center;
}

/* The price — the point of the table. Big, bold, brand green.
   Higher specificity selector so it wins over the body td center alignment. */
.hayward-pricing-table tbody td.hayward-pricing-price {
    text-align: right;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    white-space: nowrap;
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;   /* prices line up visually */
}

.hayward-pricing-notes {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-dark);
    opacity: 0.85;
    text-align: center;
}

.hayward-pricing-notes p {
    margin: 0 0 var(--spacing-sm);
}

.hayward-pricing-notes p:last-child {
    margin-bottom: 0;
}

.hayward-pricing-notes a {
    color: var(--primary-green);
    text-decoration: underline;
}

.hayward-pricing-notes a:hover {
    color: var(--primary-green-hover);
}


/* ==========================================================================
   Hayward Projects We Handle Every Week
   ========================================================================== */

.hayward-projects-section {
    background-color: var(--bg-white);
    padding: 100px 0;
}

.hayward-projects-section .main-container {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hayward-projects-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.hayward-projects-header .h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.hayward-projects-header .body-1 {
    color: var(--text-dark);
    opacity: 0.85;
    max-width: 760px;
    margin: 0 auto;
}

.hayward-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.hayward-project-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.hayward-project-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.hayward-project-card .h4 {
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md);
}

.hayward-project-card .body-2 {
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
}

.hayward-project-card strong {
    color: var(--text-dark);
    opacity: 1;
}

/* Recycling / Davis Street callout — visually distinct from the cards. */
.hayward-recycling-note {
    background-color: var(--bg-gray);
    border-left: 4px solid var(--primary-green);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg) var(--spacing-xl);
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 980px;
    margin: 0 auto;
}

.hayward-recycling-note p {
    margin: 0;
}

.hayward-recycling-note strong {
    color: var(--text-dark);
}


/* ==========================================================================
   Hablamos Español line in the Ready-to-Book section
   ========================================================================== */

.ready-to-book-spanish {
    color: var(--text-dark);
    margin: 0 0 var(--spacing-lg);
    opacity: 0.9;
}

.ready-to-book-spanish strong {
    color: var(--primary-green);
}

.ready-to-book-spanish a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.ready-to-book-spanish a:hover {
    color: var(--primary-green-hover);
    text-decoration: underline;
}


/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* MD screens (960px - 1279px) */
@media screen and (min-width: 960px) and (max-width: 1279px) {
    .hayward-pricing-section,
    .hayward-projects-section {
        padding: 80px 0;
    }

    .hayward-projects-grid {
        gap: var(--spacing-lg);
    }

    .hayward-project-card {
        padding: var(--spacing-lg);
    }
}

/* SM screens (600px - 959px) */
@media screen and (min-width: 600px) and (max-width: 959px) {
    .hayward-pricing-section,
    .hayward-projects-section {
        padding: 60px 0;
    }

    .hayward-pricing-header,
    .hayward-projects-header {
        margin-bottom: var(--spacing-xl);
    }

    /* Drop to a single column on tablets — 4 cards stacked reads better than 2x2 cramped. */
    .hayward-projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hayward-project-card {
        padding: var(--spacing-lg);
    }

    .hayward-recycling-note {
        padding: var(--spacing-md) var(--spacing-lg);
    }
}

/* XS screens (< 600px) */
@media screen and (max-width: 599px) {
    .hayward-pricing-section,
    .hayward-projects-section {
        padding: 48px 0;
    }

    .hayward-pricing-section .main-container,
    .hayward-projects-section .main-container {
        padding: 0 var(--spacing-md);
    }

    .hayward-pricing-header,
    .hayward-projects-header {
        margin-bottom: var(--spacing-lg);
    }

    /* Mobile: drop the horizontal scroll table for a card-style stack.
       Each row becomes a card with the size badge + best-for above the big price. */
    .hayward-pricing-table-wrapper {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow-x: visible;
    }

    .hayward-pricing-table,
    .hayward-pricing-table thead,
    .hayward-pricing-table tbody,
    .hayward-pricing-table tr,
    .hayward-pricing-table td,
    .hayward-pricing-table th {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .hayward-pricing-table thead {
        display: none;   /* column headers don't make sense in card mode */
    }

    .hayward-pricing-table colgroup { display: none; }

    /* Group rows stay as small banners between card stacks. */
    .hayward-pricing-group-row th {
        margin: var(--spacing-md) 0 var(--spacing-sm);
        border-radius: var(--radius-md);
        padding: 10px 16px;
        font-size: 13px;
    }

    /* Each data row becomes a white card. */
    .hayward-pricing-table tbody tr:not(.hayward-pricing-group-row) {
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: var(--radius-md);
        margin-bottom: var(--spacing-sm);
        padding: var(--spacing-md);
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "size  price"
            "desc  desc";
        column-gap: var(--spacing-md);
        row-gap: var(--spacing-xs, 8px);
        align-items: center;
    }

    .hayward-pricing-table tbody tr:not(.hayward-pricing-group-row):nth-of-type(even) td {
        background-color: transparent;   /* striping doesn't apply in card mode */
    }

    .hayward-pricing-table tbody tr:not(.hayward-pricing-group-row) td {
        padding: 0;
        border: none;
        font-size: 14px;
    }

    /* Place the cells into the grid by content order. */
    .hayward-pricing-table tbody tr:not(.hayward-pricing-group-row) td:nth-child(1) { grid-area: size; }
    .hayward-pricing-table tbody tr:not(.hayward-pricing-group-row) td:nth-child(2) { grid-area: desc; opacity: 0.85; }
    .hayward-pricing-table tbody tr:not(.hayward-pricing-group-row) td:nth-child(3) { grid-area: price; }

    .hayward-pricing-price {
        font-size: 24px;
    }

    .hayward-pricing-notes {
        font-size: 14px;
    }

    .hayward-projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hayward-project-card {
        padding: var(--spacing-md);
    }

    .hayward-project-card .h4 {
        font-size: 18px;
        margin-bottom: var(--spacing-sm);
    }

    .hayward-project-card .body-2 {
        font-size: 14px;
    }

    .hayward-recycling-note {
        padding: var(--spacing-md);
        font-size: 14px;
        border-left-width: 3px;
    }

    .ready-to-book-spanish {
        font-size: 14px;
        margin-bottom: var(--spacing-md);
    }
}
