/* ==========================================================================
   SS FASHION - Decorative Arch Category Cards Section
   ========================================================================== */

.arch-categories-section {
    background-color: #fbf9f4;
    padding: 45px 0 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(120, 35, 55, 0.07);
}

/* Outer layout containing left floral, cards, right floral */
.arch-row-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

/* Side Floral Botanical Accents */
.floral-accent {
    flex: 0 0 auto;
    width: 60px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
}

.floral-accent img,
.floral-accent svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.floral-accent-right {
    transform: scaleX(-1); /* Symmetrical mirror on right */
}

/* Cards Grid */
.arch-cards-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1140px;
}

/* Individual Arch Card */
.arch-card {
    position: relative;
    display: block;
    text-decoration: none;
    width: 100%;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-card:hover {
    transform: translateY(-4px);
}

/* Frame Box that contains the arch mask and border */
.arch-frame-box {
    position: relative;
    width: 100%;
    aspect-ratio: 360 / 200;
    border-radius: 12px;
    filter: drop-shadow(0 6px 18px rgba(120, 35, 55, 0.08));
    transition: filter 0.35s ease;
}

.arch-card:hover .arch-frame-box {
    filter: drop-shadow(0 10px 24px rgba(197, 164, 109, 0.3));
}

/* SVG Mask / Container that clips the image into the exact Cusped Arch */
.arch-mask-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    clip-path: url(#indianArchClip);
    -webkit-clip-path: url(#indianArchClip);
    background-color: #2b2223;
    overflow: hidden;
}

/* Photograph */
.arch-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform: scale(1.01);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.arch-card:hover .arch-photo {
    transform: scale(1.07);
}

/* Ambient gradient at bottom-right for text legibility (Desktop) */
.arch-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0) 35%,
        rgba(26, 18, 20, 0.35) 65%,
        rgba(26, 18, 20, 0.85) 100%
    );
    pointer-events: none;
}

/* Vector Gold Ornamental Arch Border Frame */
.arch-border-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Desktop Overlay Caption */
.arch-caption-overlay {
    position: absolute;
    right: 20px;
    bottom: 16px;
    z-index: 4;
    text-align: right;
    color: #ffffff;
    pointer-events: none;
}

.arch-caption-overlay .arch-title {
    font-family: var(--ss-font-serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

.arch-caption-overlay .arch-explore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ss-font-sans, 'Inter', sans-serif);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #f7eed9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    transition: transform 0.25s ease, color 0.25s ease;
}

.arch-caption-overlay .arch-explore svg {
    transition: transform 0.25s ease;
}

.arch-card:hover .arch-caption-overlay .arch-explore {
    color: #ffffff;
}

.arch-card:hover .arch-caption-overlay .arch-explore svg {
    transform: translateX(4px);
}

/* Mobile Caption Below Image (Hidden on Desktop) */
.arch-caption-below {
    display: none;
}

/* ==========================================================================
   Responsive Breakpoints: Mobile 3 Categories Side-by-Side with Text Below
   ========================================================================== */

@media (max-width: 992px) {
    .floral-accent {
        display: none;
    }

    .arch-cards-grid {
        gap: 16px;
    }

    .arch-caption-overlay {
        right: 14px;
        bottom: 12px;
    }
}

@media (max-width: 768px) {
    .arch-categories-section {
        padding: 20px 0 16px;
    }

    .arch-row-wrapper {
        padding: 0 12px;
        display: block;
        width: 100%;
    }

    /* All 3 categories in the same place side-by-side — NO scrolling needed! */
    .arch-cards-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        overflow: visible;
        padding: 0;
        margin: 0;
    }

    .arch-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .arch-frame-box {
        aspect-ratio: 1 / 1.15;
        border-radius: 8px;
        filter: drop-shadow(0 3px 8px rgba(120, 35, 55, 0.08));
    }

    /* Hide desktop overlay on mobile so photo is completely clean */
    .arch-caption-overlay {
        display: none;
    }

    .arch-gradient {
        display: none; /* No dark gradient over photo on mobile */
    }

    /* Text clearly below the image */
    .arch-caption-below {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-top: 6px;
        width: 100%;
    }

    .arch-caption-below .arch-title {
        font-family: var(--ss-font-serif, 'Playfair Display', Georgia, serif);
        font-size: 12.5px;
        font-weight: 600;
        color: #282321;
        margin: 0;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .arch-caption-below .arch-explore {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font-family: var(--ss-font-sans, 'Inter', sans-serif);
        font-size: 10px;
        font-weight: 600;
        color: #782337;
        margin-top: 2px;
        transition: color 0.2s ease;
    }

    .arch-caption-below .arch-explore svg {
        color: #782337;
        stroke: #782337;
    }
}

@media (max-width: 360px) {
    .arch-row-wrapper {
        padding: 0 8px;
    }

    .arch-cards-grid {
        gap: 6px;
    }

    .arch-frame-box {
        aspect-ratio: 1 / 1.18;
    }

    .arch-caption-below .arch-title {
        font-size: 11px;
    }

    .arch-caption-below .arch-explore {
        font-size: 9px;
    }
}
