/* =========================================
   Customization Feature Page - High-End Design
   Vibe: Soft Structuralism | Layout: Asymmetrical Bento
   ========================================= */

:root {
    --cust-primary: #7C3AED;
    --cust-primary-hover: #6D28D9;
    --cust-bg-light: #F8FAFC;
    --cust-bg-white: #FFFFFF;
    --cust-text-main: #0F172A;
    --cust-text-muted: #475569;
    --cust-border-radius: 14px;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* =========================================
   HERO SECTION
   ========================================= */
.cust-hero-container {
    border-top: none;

}

.cust-hero {
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 0!important;
}

/* Eyebrow pill - microscopic badge above headline */
.cust-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.06);
    color: var(--cust-primary);
    border: 1px solid rgba(124, 58, 237, 0.1);
    margin-bottom: 6px;
}

.cust-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(124, 58, 237, 0.06);
    color: var(--cust-primary);
    border: 1px solid rgba(124, 58, 237, 0.1);
    margin-bottom: 6px;
}

/* Hero Image - Double Bezel (outer shell + inner core) */
.cust-hero-image-wrapper {
    margin-top: 48px;
    width: 100%;
    padding: 6px;
    border-radius: 24px;
    background: linear-gradient(135deg,
            rgba(124, 58, 237, 0.04) 0%,
            rgba(100, 80, 140, 0.02) 50%,
            rgba(124, 58, 237, 0.04) 100%);
    border: 1px solid rgba(124, 58, 237, 0.08);
    position: relative;
}

.cust-hero-image-inner {
    border-radius: 18px;
    overflow: hidden;
    background: var(--primary-header-and-footer-logo);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 20px 60px -12px rgba(100, 80, 140, 0.12);
    position: relative;
}

.cust-hero-image-inner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.04), transparent);
    pointer-events: none;
    border-radius: 0 0 18px 18px;
}

.cust-hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cust-hero-image-wrapper:hover .cust-hero-image {
    transform: scale(1.015);
}

/* =========================================
   SECTION HEADER - Enhanced
   ========================================= */
.cust-section-header {
    text-align: center;
    margin-bottom: 72px;
    max-width: 720px;
    margin-inline: auto;
}

.cust-section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--cust-text-main);
    line-height: 1.2;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

.cust-section-header p {
    font-size: 1.125rem;
    color: var(--cust-text-muted);
    line-height: 1.7;
    max-width: 55ch;
    margin-inline: auto;
}

/* =========================================
   SCROLL ANIMATION - Blur-fade-up entry
   ========================================= */
.cust-reveal {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(0.32, 0.72, 0, 1),
        transform 0.8s cubic-bezier(0.32, 0.72, 0, 1),
        filter 0.8s cubic-bezier(0.32, 0.72, 0, 1);
}

.cust-reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* =========================================
   BENTO GRID - named areas, RTL-safe
   Areas follow reading order, so DOM order stays the visual
   and tab order at every breakpoint (no line-number placement,
   no nth-child coupling).
   Visual: leading proof + two supporting proofs.
   Ops: three equivalent proofs, equal weight.
   ========================================= */
.cust-bento-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.cust-bento-grid--visual {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "hero hero side1"
        "hero hero side2";
}

.cust-bento-grid--visual>.cust-bento-shell--hero {
    grid-area: hero;
}

.cust-bento-grid--visual>.cust-bento-shell--side1 {
    grid-area: side1;
}

.cust-bento-grid--visual>.cust-bento-shell--side2 {
    grid-area: side2;
}

.cust-bento-grid--ops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Staggered reveal cascade (transition-delay, not animation) --- */
.cust-bento-shell[style*="--i:0"] {
    transition-delay: 0ms;
}

.cust-bento-shell[style*="--i:1"] {
    transition-delay: 100ms;
}

.cust-bento-shell[style*="--i:2"] {
    transition-delay: 200ms;
}

/* --- Shell (simplified, no double bezel) --- */
.cust-bento-shell {
    padding: 0;
    border-radius: var(--cust-border-radius);
    background: transparent;
    border: none;
    min-width: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- Inner Card (Core) --- */
.cust-bento-card {
    background-color: var(--primary-header-and-footer-logo);
    border: 1.5px solid #dbe2f9;
    border-radius: var(--cust-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.cust-bento-shell:hover .cust-bento-card {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 rgba(10, 25, 47, 0.08);
    border-color: #93a5d6;
}

.cust-bento-card:focus-within {
    outline: 2px solid var(--cust-primary);
    outline-offset: 2px;
}

/* --- Card Content --- */
.cust-bento-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cust-bento-card-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-dark-text);
    line-height: 1.7;
}

.cust-bento-card-content p {
    font-size: 16px;
    color: var(--primary-gray-text);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* --- Card Visual (Image) --- */
.cust-bento-card-visual {
    padding: 0 24px 24px;
    margin-top: auto;
    min-height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.cust-bento-card-visual img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* --- Icon --- */
.cust-bento-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.cust-bento-icon--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    color: #3b82f6;
}

.cust-bento-icon--green {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    color: #22c55e;
}

.cust-bento-icon--purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
}

.cust-bento-icon--orange {
    background: linear-gradient(135deg, rgba(255, 123, 38, 0.1), rgba(255, 123, 38, 0.05));
    color: #ff7b26;
}

.cust-bento-icon--red {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: #ef4444;
}

.cust-bento-icon--teal {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0.05));
    color: #14b8a6;
}

/* =========================================
   CTA FORM - Disable Animations
   ========================================= */
.cust-main .cta-section,
.cust-main .cta-section.cust-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* =========================================
   SECTION SEPARATOR - between features sub-sections
   ========================================= */
.cust-features-ops {
    margin-top: 80px;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .cust-section-header h2 {
        font-size: 2rem;
    }

    .cust-section-header {
        margin-bottom: 56px;
    }

    /* Tablet: hero bleeds full width on top, supporters pair below.
       Ops keeps three equal columns while measure allows it. */
    .cust-bento-grid--visual {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "hero hero"
            "side1 side2";
    }
}

@media (max-width: 768px) {

    /* Single column on mobile: DOM order is the reading order */
    .cust-bento-grid--visual {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "hero"
            "side1"
            "side2";
        gap: 16px;
    }

    .cust-bento-grid--ops {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .cust-bento-shell {
        padding: 0;
    }

    .cust-hero-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .cust-hero-image-wrapper {
        margin-top: 32px;
        padding: 4px;
        border-radius: 18px;
    }

    .cust-hero-image-inner {
        border-radius: 14px;
    }

    .cust-section-header {
        margin-bottom: 48px;
    }

    .cust-section-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .cust-section-header h2 {
        font-size: 1.5rem;
    }

    .cust-bento-card-content {
        padding: 16px;
    }

    .cust-eyebrow {
        font-size: 9px;
        padding: 4px 12px;
    }
}