/* ============================================================
   Brands — one-pager (/brand/{slug}/) + Brands We Carry index
   Loads on top of archive-younger.css (hero + product grid).
   ============================================================ */

/* ── Grid heading — this is a sampling, not the whole line ── */
.brand-grid-heading {
    position: relative;
    font-size: 1.4rem;
    padding-bottom: 12px;
}
.brand-grid-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: var(--amh-orange);
}
.brand-grid-sub {
    margin: 16px 0 34px;
}

/* ── Card blurb (short description under the title) ── */
.product-card-blurb {
    margin: 0 0 14px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #6d675f;
}

/* ── Brands We Carry cards — logo instead of a product shot ── */
.brand-card-media {
    aspect-ratio: 4 / 2.4;
    padding: 28px;
    box-sizing: border-box;
}
.brand-card-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.brand-card-wordmark {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    color: var(--amh-ink);
}
.brand-card-count {
    margin-top: auto;
    font-size: 0.8rem;
    color: #9a938a;
}

/* ── "Browse the full catalog" ── */
.brand-more {
    margin: 44px 0 0;
    text-align: center;
}
.brand-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--amh-orange);
    border: 1.5px solid var(--amh-orange);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.brand-more-btn:hover {
    background: #cf7a25;
    border-color: #cf7a25;
}

/* ── Dark in-store band ── */
.brand-band {
    padding: 64px 0;
    background: var(--amh-ink);
    color: #fff;
}
.brand-band-h2 {
    position: relative;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 14px;
    padding-bottom: 12px;
}
.brand-band-h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    background: var(--amh-orange);
}
.brand-band-sub {
    max-width: 560px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.75);
}
/* Locations stacked on the left under the heading, form on the right */
.brand-band-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(0, 1.7fr);
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}
.brand-showrooms {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.brand-showroom {
    position: relative;
    padding: 24px 24px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
}
.brand-showroom h3 {
    color: #fff;
    margin-bottom: 8px;
}
.brand-showroom p {
    margin: 0 0 4px;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.75);
}
.brand-showroom a {
    color: rgba(255,255,255,0.85);
}
.brand-map-link {
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--amh-orange);
    transition: color 0.2s ease;
}
.brand-map-link:hover { color: #fff; }
.brand-map-link svg { width: 22px; height: 22px; }

/* ── Contact form in the dark band — boxed, hard orange shadow ── */
.brand-contact {
    scroll-margin-top: 100px;
    padding: 36px 36px 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 10px 10px 0 var(--amh-orange);
}
.brand-contact-icon {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--amh-orange);
}
.brand-contact-icon svg { width: 28px; height: 28px; }

/* WPForms renders in Modern mode, which themes the form via CSS custom
   properties — override those, or its own rules outrank ours. */
.brand-form .wpforms-container {
    --wpforms-button-background-color: var(--amh-orange);
    --wpforms-button-border-color: var(--amh-orange);
    --wpforms-button-text-color: #fff;
    --wpforms-button-border-radius: 0;
    --wpforms-field-border-radius: 0;
    --wpforms-label-color: #fff;
    --wpforms-label-sublabel-color: rgba(255,255,255,0.6);
    --wpforms-label-error-color: #ffb3a0;
}
.brand-form .wpforms-field-label,
.brand-form label { font-family: var(--font-head); font-weight: 700; color: #fff !important; }
.brand-form input[type="text"],
.brand-form input[type="email"],
.brand-form input[type="tel"],
.brand-form textarea,
.brand-form select {
    border: 1px solid var(--amh-rule);
    border-radius: 0;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.brand-form input:focus,
.brand-form textarea:focus,
.brand-form select:focus {
    border-color: var(--amh-orange);
    box-shadow: 0 0 0 2px rgba(230,139,50,0.18);
    outline: none;
}
.brand-form .wpforms-submit {
    background: var(--amh-orange);
    border: 1px solid var(--amh-orange);
    color: #fff;
    font-family: var(--font-head);
    border-radius: 0;
    padding: 12px 26px;
    transition: background 0.2s ease, color 0.2s ease;
}
.brand-form .wpforms-submit:hover { background: #fff; border-color: #fff; color: var(--amh-ink); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .brand-band { padding: 48px 0; }
    .brand-band-grid { grid-template-columns: 1fr; gap: 32px; }
    .brand-contact { padding: 26px 22px 30px; box-shadow: 7px 7px 0 var(--amh-orange); }
}
