/*
 * Home-page layout overrides.
 * Bootstrap CSS + ascentnavcss.css handle global styles and product-card
 * visuals. This file only owns: the product grid, the SEO intro block,
 * and the grid-context override for .product-card max-width.
 */

/* ── SEO intro block ─────────────────────────────────────── */
.hp-intro {
    text-align: center;
    padding: 1.25rem 1rem 0.25rem;
    max-width: 900px;
    margin: 1rem auto 0;
}

.hp-intro h1 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.hp-intro p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 575px) {
    .hp-intro p { display: none; }
}

/* ── Product card grid ───────────────────────────────────── */
.hp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* mobile-first: 2 col */
    gap: 1rem;
    min-height: 500px;
    max-width: 1300px;
    margin: 1rem auto 2rem;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .hp-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Grid item modifiers */
.hp-item--first { order: -1; }
.hp-item--last  { order: 999; }

.hp-item--desktop-only { display: none; }

@media (min-width: 992px) {
    .hp-item--desktop-only { display: block; }
}

/* ── product-card override inside the grid ───────────────── */
/* ascentnavcss.css caps .product-card at 320 px for sidebar use;
   inside the homepage grid each card should fill its column. */
.hp-grid .product-card {
    max-width: none;
    width: 100%;
    margin-bottom: 0;
}

/* ── Mailing list signup section ─────────────────────────── */
.signup-section {
    padding: 3rem 1rem;
    border-top: 1px solid #e5e7eb;
}

.signup-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 639px) {
    .signup-section__inner { grid-template-columns: 1fr; gap: 2rem; }
}

.signup-section__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.signup-section__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.signup-section__desc {
    font-size: 0.9375rem;
    color: #4b5563;
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

.signup-section__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signup-section__bullets li {
    font-size: 0.9rem;
    color: #374151;
    padding: 0.35rem 0 0.35rem 1.5rem;
    position: relative;
    line-height: 1.5;
}

.signup-section__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #2563eb;
    border-radius: 50%;
}

/* Form card */
.signup-section__card {
    background: #f8faff;
    border: 1px solid #c7dbf8;
    border-radius: 12px;
    padding: 1.75rem;
}

.signup-field {
    margin-bottom: 0.875rem;
}

.signup-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
}

.signup-field input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    color: #111827;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.signup-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.signup-consent {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.signup-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    cursor: pointer;
}

.signup-consent label {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.5;
    cursor: pointer;
}

.signup-btn {
    display: block;
    width: 100%;
    padding: 0.6875rem 1rem;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.signup-btn:hover:not(:disabled) { background: #1d4ed8; }
.signup-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.signup-error {
    font-size: 0.875rem;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.signup-compliance {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0.75rem 0 0;
    line-height: 1.5;
}

.signup-success {
    text-align: center;
    padding: 1rem 0;
}

.signup-success__icon {
    display: block;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
}

.signup-success p {
    font-size: 1rem;
    font-weight: 600;
    color: #16a34a;
    margin: 0;
}
