/* ============================================================
   Accessories / Custom Program — accessories.css
   Apple/Nomad-inspired configurator
   BEM prefix: .acc-*
   ============================================================ */

/* ── Hero ── */
.acc-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background: #000;
    color: #fff;
    overflow: hidden;
    padding: calc(var(--nav-h) + var(--banner-h)) 1.5rem 5rem;
}

.acc-hero__bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 60%, rgba(255,255,255,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 80% 60% at 30% 70%, rgba(212,43,43,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 70% 70%, rgba(43,100,212,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.acc-hero__content {
    position: relative;
    max-width: 680px;
    z-index: 1;
}

.acc-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1.25rem;
    display: block;
}

.acc-hero__heading {
    font-family: var(--font-body);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.acc-hero__heading em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

.acc-hero__sub {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 auto 2.5rem;
}

.acc-hero__cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    background: #fff;
    color: #111;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.acc-hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

.acc-hero__note {
    display: block;
    margin-top: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.02em;
}

/* ── Shared Section Layout ── */
.acc-section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
}

.acc-section--white {
    background: #fff;
}

.acc-section--alt {
    background: #f5f5f7;
}

.acc-section--dark {
    background: #1d1d1f;
    color: #fff;
}

.acc-section__inner {
    max-width: 1080px;
    margin: 0 auto;
}

.acc-section__eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.35);
    margin-bottom: 0.5rem;
    display: block;
}

.acc-section--dark .acc-section__eyebrow {
    color: rgba(255,255,255,0.35);
}

.acc-section__heading {
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
    color: #1d1d1f;
}

.acc-section--dark .acc-section__heading {
    color: #fff;
}

.acc-section__desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(0,0,0,0.45);
    line-height: 1.65;
    max-width: 520px;
    margin: 0 0 2.5rem;
}

.acc-section--dark .acc-section__desc {
    color: rgba(255,255,255,0.45);
}

/* ── Finish Toggle (Glossy / Matte) ── */
.acc-finish-toggle {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 999px;
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.acc-finish-toggle__btn {
    padding: 0.5rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(0,0,0,0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.acc-finish-toggle__btn.is-active {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Color Picker Grid ── */
.acc-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    justify-content: flex-start;
}

.acc-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out);
}

.acc-color:hover {
    transform: translateY(-2px);
}

.acc-color__swatch {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    position: relative;
}

.acc-color.is-selected .acc-color__swatch {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(0,0,0,0.15);
    border-color: transparent;
}

.acc-section--alt .acc-color.is-selected .acc-color__swatch {
    box-shadow: 0 0 0 3px #f5f5f7, 0 0 0 5px rgba(0,0,0,0.15);
}

.acc-color__swatch--custom {
    background: conic-gradient(#f44, #f90, #ff0, #0c0, #09f, #90f, #f44);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.acc-color__label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(0,0,0,0.4);
    text-align: center;
    white-space: nowrap;
}

/* ── Product Render ── */
.acc-render {
    margin-top: 3rem;
    text-align: center;
}

.acc-render__img {
    max-width: 100%;
    width: 420px;
    height: auto;
    border-radius: 20px;
}

/* ── Material Cards Grid ── */
.acc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.acc-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s ease;
    position: relative;
}

.acc-section--alt .acc-card {
    background: #fff;
}

.acc-section--white .acc-card {
    background: #f5f5f7;
}

.acc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.acc-card.is-selected {
    border-color: #1d1d1f;
    box-shadow: 0 0 0 1px #1d1d1f;
}

.acc-card__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.acc-card__badge--popular {
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.5);
}

.acc-card__badge--premium {
    background: rgba(0,0,0,0.06);
    color: rgba(0,0,0,0.5);
}

.acc-card__name {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 650;
    color: #1d1d1f;
    margin: 0 0 0.4rem;
    letter-spacing: -0.01em;
}

.acc-card__desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(0,0,0,0.4);
    line-height: 1.55;
    margin: 0;
}

/* ── Coating / Finish Options ── */
.acc-coatings {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 2rem;
    background: #f0f0f0;
    border-radius: 999px;
    padding: 0.25rem;
}

.acc-coating {
    padding: 0.5rem 1.35rem;
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 500;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: rgba(0,0,0,0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.acc-coating:hover {
    color: rgba(0,0,0,0.7);
}

.acc-coating.is-selected {
    background: #1d1d1f;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ── Section Note ── */
.acc-note {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(0,0,0,0.35);
    font-style: normal;
}

.acc-note i {
    margin-right: 0.35rem;
    opacity: 0.6;
}

/* ── Quote Form ── */
.acc-form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.acc-form-header .acc-section__desc {
    margin-left: auto;
    margin-right: auto;
}

.acc-form {
    max-width: 520px;
    margin: 0 auto;
}

.acc-form__group {
    margin-bottom: 1.5rem;
}

.acc-form__label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.acc-form__input,
.acc-form__textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: #fff;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.acc-form__input::placeholder,
.acc-form__textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.acc-form__input:focus,
.acc-form__textarea:focus {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
}

.acc-form__textarea {
    min-height: 110px;
    resize: vertical;
}

.acc-form__submit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #fff;
    color: #1d1d1f;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    letter-spacing: 0.01em;
    margin-top: 0.5rem;
}

.acc-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(255,255,255,0.12);
}

.acc-form__submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.acc-form__success {
    text-align: center;
    padding: 3rem 1.5rem;
    display: none;
}

.acc-form__success.is-visible {
    display: block;
}

.acc-form__success-icon {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.acc-form__success-heading {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.acc-form__success-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

/* ── Scroll Reveal ── */
.acc-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.acc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .acc-hero {
        min-height: 70vh;
        padding-bottom: 3.5rem;
        align-items: center;
    }

    .acc-hero__heading {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .acc-section {
        padding: 3.5rem 1.25rem;
    }

    .acc-colors {
        gap: 1.25rem;
        justify-content: center;
    }

    .acc-color__swatch {
        width: 48px;
        height: 48px;
    }

    .acc-cards {
        grid-template-columns: 1fr;
    }

    .acc-render__img {
        width: 100%;
    }

    .acc-coatings {
        width: 100%;
        justify-content: center;
    }

    .acc-form {
        max-width: 100%;
    }
}
