.pallets-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    margin-top: 70px;
    background: url('images/main_page_background.jpg') center center/cover no-repeat;
    overflow: hidden;
}

body:has(.announcement-banner-link:not(.hidden)) .pallets-hero {
    margin-top: 120px;
    min-height: calc(100vh - 120px);
}

.pallets-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.48), rgba(30, 41, 59, 0.6)),
        url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 L50 0 L100 50 L50 100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: auto, 100px 100px;
    opacity: 1;
}

.pallets-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.38) 0%,
        rgba(59, 130, 246, 0.18) 50%,
        rgba(15, 23, 42, 0.34) 100%
    );
    backdrop-filter: blur(1px);
}

.pallets-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
    gap: 2.5rem;
    align-items: center;
    padding: 3.75rem 0 2.5rem;
}

.pallets-hero-content {
    position: relative;
    color: white;
    max-width: 620px;
}

.pallets-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fde68a;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pallets-hero h1 {
    font-size: clamp(3rem, 4.3vw, 4.2rem);
    line-height: 1.04;
    margin-bottom: 1rem;
    text-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    max-width: 14ch;
}

.pallets-hero p {
    font-size: 1.06rem;
    line-height: 1.72;
    color: rgba(255, 255, 255, 0.98);
    max-width: 640px;
    margin-bottom: 1rem;
}

.pallets-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.6rem;
}

.pallet-hero-btn {
    min-height: 54px;
    min-width: 320px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-inline: 2.35rem;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.pallet-hero-note {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 34ch;
}

.pallet-hero-note a {
    color: #fde68a;
    font-weight: 700;
    text-decoration: none;
}

.pallet-hero-note a:hover {
    text-decoration: underline;
}

.compact-highlight-card {
    padding: 0.85rem;
}

.compact-highlight-card .pallet-highlight-icon {
    margin-bottom: 0.35rem;
}

.compact-highlight-card strong {
    font-size: 0.9rem;
}

.compact-highlight-card span {
    font-size: 0.8rem;
}

.pallets-highlight-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 3px solid rgba(245, 158, 11, 0.8);
    border-radius: 18px;
    padding: 1rem;
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pallets-highlight-card:hover {
    transform: translateY(-3px);
    border-left-color: #14b8a6;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.pallet-highlight-icon {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.pallets-highlight-card strong {
    display: block;
    color: #ffffff;
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
}

.pallets-highlight-card span {
    display: block;
    color: #e5e7eb;
    font-size: 0.88rem;
    line-height: 1.5;
}

.pallets-hero-visual {
    display: flex;
    justify-content: flex-end;
}

.supplier-visual-card {
    width: 100%;
    max-width: 560px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 1.35rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.supplier-visual-copy {
    text-align: center;
    margin-bottom: 1.05rem;
}

.supplier-visual-kicker {
    display: inline-block;
    color: #fde68a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.supplier-visual-copy h3 {
    color: #ffffff;
    font-size: 1.3rem;
}

.supplier-showcase-copy p {
    margin: 0.7rem auto 0;
    color: #dbe5f3;
    max-width: 42ch;
    font-size: 0.94rem;
    line-height: 1.6;
}

.supplier-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
}

.supplier-showcase-grid-simple {
    gap: 0.9rem;
}

.supplier-showcase-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.supplier-showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
}

.supplier-showcase-card-minimal {
    position: relative;
    min-height: 220px;
}

.supplier-showcase-image {
    min-height: 158px;
    border-radius: 0;
    margin-bottom: 0;
}

.supplier-showcase-card-minimal .supplier-showcase-image {
    min-height: 220px;
}

.supplier-showcase-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    z-index: 2;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.92));
}

.supplier-showcase-overlay h4 {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.35;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.supplier-showcase-body {
    padding: 1rem 1rem 1.1rem;
}

.supplier-showcase-body h4 {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.supplier-showcase-body p {
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

.supplier-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    color: #0f172a;
    background: linear-gradient(135deg, #f8fafc, #dbeafe);
}

.supplier-amazon .supplier-pill {
    background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.supplier-lowes .supplier-pill {
    background: linear-gradient(135deg, #60a5fa, #bfdbfe);
}

.supplier-tools .supplier-pill {
    background: linear-gradient(135deg, #34d399, #a7f3d0);
}

.supplier-mixed .supplier-pill {
    background: linear-gradient(135deg, #c084fc, #e9d5ff);
}

.pallet-preview-image {
    min-height: 92px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(59, 130, 246, 0.22));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
    text-align: center;
    padding: 0.75rem;
}

.pallet-preview-photo {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.pallet-preview-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.62));
}

.pallet-preview-photo {
    position: relative;
    z-index: 0;
}

.pallet-preview-photo > * {
    position: relative;
    z-index: 1;
}

.pallet-preview-tile strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.pallet-preview-tile span {
    display: block;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.pallets-section {
    padding: 5.5rem 0;
    position: relative;
}

.pallets-workflow {
    background: linear-gradient(135deg, #f0f4ff 0%, #fff5f5 50%, #f0fff4 100%);
}

.pallets-steps-grid {
    margin-top: 3rem;
}

.pallets-categories {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.08), rgba(16, 185, 129, 0.08));
}

.pallets-categories-grid {
    margin-top: 3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pallet-photo-placeholder {
    min-height: 200px;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #64748b;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 2px dashed rgba(37, 99, 235, 0.22);
    font-weight: 600;
}

.pallet-photo-placeholder span {
    max-width: 220px;
}

.pallet-photo-real {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    position: relative;
    overflow: hidden;
}

.pallet-photo-real::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.28));
}

.pallets-grade-key {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 55%, #eef4ff 100%);
}

.pallets-grade-grid {
    margin-top: 3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manifest-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.08), rgba(139, 92, 246, 0.08));
}

.manifest-grid {
    align-items: stretch;
}

.manifest-form-card,
.manifest-sidecard {
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.manifest-subtitle {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.two-column-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.multi-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.75rem;
}

.multi-select-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 500;
}

.multi-select-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.multi-select-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.manifest-sidecard .location-info {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pallets-faq {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #fff7ed 100%);
}

.pallets-faq .policy-accordion {
    margin-top: 3rem;
}

@media (min-width: 901px) and (max-height: 820px) {
    .pallets-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
        gap: 1.5rem;
        padding: 1.25rem 0;
    }

    .pallets-hero-content {
        max-width: 560px;
    }

    .pallets-eyebrow {
        font-size: 0.72rem;
        padding: 0.38rem 0.72rem;
        margin-bottom: 0.75rem;
    }

    .pallets-hero h1 {
        font-size: clamp(2.35rem, 3.35vw, 3.2rem);
        max-width: 12ch;
        margin-bottom: 0.75rem;
    }

    .pallets-hero p {
        font-size: 0.96rem;
        line-height: 1.58;
        max-width: 560px;
    }

    .pallets-hero-actions {
        gap: 0.75rem;
        margin-top: 1.1rem;
    }

    .pallet-hero-btn {
        min-height: 50px;
        min-width: 280px;
    }

    .pallet-hero-note {
        font-size: 0.88rem;
        line-height: 1.42;
        max-width: 30ch;
    }

    .supplier-visual-card {
        max-width: 500px;
        padding: 1rem;
        border-radius: 24px;
    }

    .supplier-visual-copy {
        margin-bottom: 0.75rem;
    }

    .supplier-visual-kicker {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .supplier-visual-copy h3 {
        font-size: 1.08rem;
    }

    .supplier-showcase-copy p {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-top: 0.45rem;
    }

    .supplier-showcase-grid {
        gap: 0.7rem;
    }

    .supplier-showcase-card-minimal,
    .supplier-showcase-card-minimal .supplier-showcase-image {
        min-height: 160px;
    }

    .supplier-showcase-overlay {
        padding: 0.72rem;
    }

    .supplier-pill {
        font-size: 0.64rem;
        padding: 0.22rem 0.55rem;
        margin-bottom: 0.45rem;
    }

    .supplier-showcase-overlay h4 {
        font-size: 0.84rem;
        line-height: 1.25;
    }
}

@media (max-width: 900px) {
    .two-column-row,
    .multi-select-grid,
    .manifest-grid,
    .pallets-categories-grid,
    .pallets-hero-grid,
    .pallets-grade-grid,
    .supplier-showcase-grid {
        grid-template-columns: 1fr;
    }

    .pallets-hero {
        min-height: auto;
    }

    .supplier-visual-card {
        max-width: none;
    }

    .pallets-hero-visual {
        justify-content: stretch;
    }

    .supplier-visual-card {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .pallets-hero-grid {
        padding: 3.5rem 0 2.5rem;
        gap: 2rem;
    }

    .pallets-hero h1 {
        font-size: 2.55rem;
        max-width: none;
    }

    .pallets-hero p {
        font-size: 1rem;
    }

    .pallets-hero-actions {
        align-items: stretch;
    }

    .pallet-hero-btn {
        width: 100%;
    }

    .supplier-showcase-image {
        min-height: 180px;
    }

    .pallets-section {
        padding: 4.25rem 0;
    }

    .pallet-photo-placeholder {
        min-height: 170px;
    }
}
