/* =============================================================================
   our-story.css
   Page-specific styles for our-story.html.
   Shared styles (hero, navbar, footer, typography) live in shared.css.
   ============================================================================= */


/* =============================================================================
   SECTIONS
   ============================================================================= */

.story-section {
    padding: 80px 0;
}

.section-origin  { background-color: var(--cream); }
.section-values  { background-color: rgba(226, 196, 249, 0.85); }
.section-becca   { background-color: var(--cream); }

@media (max-width: 767.98px) {
    .story-section { padding: 56px 0; }
}


/* =============================================================================
   ORIGIN — image + floating badge
   ============================================================================= */

.origin-img-wrap {
    position: relative;
}

.origin-img-placeholder {
    height: 420px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(171, 29, 121, 0.15);
}

.origin-img-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(171, 29, 121, 0.15);
}

@media (max-width: 767.98px) {
    .origin-img-wrap img,
    .origin-img-placeholder { height: 280px; }
}


/* =============================================================================
   VALUES CARDS
   ============================================================================= */

.value-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--pink);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(171, 29, 121, 0.15);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.value-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--deep);
    margin-bottom: 0.6rem;
}

.value-card p {
    font-size: 0.95rem;
    color: #5a4a62;
    line-height: 1.7;
    margin: 0;
}


/* =============================================================================
   MEET BECCA
   ============================================================================= */

.becca-img-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Decorative offset frame */
.becca-img-wrap::before,
.origin-img-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 3px solid var(--pink-light);
    border-radius: 24px;
    z-index: 0;
}

.becca-img-wrap img,
.becca-img-placeholder {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

.becca-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--pink);
    border-left: 4px solid var(--pink-light);
    padding-left: 1.2rem;
    margin: 1.8rem 0;
    line-height: 1.6;
}

@media (max-width: 767.98px) {

    .becca-img-wrap::before,
    .origin-img-wrap::before { display: none; }
}


/* =============================================================================
   GALLERY TEASER — 3×2 grid, equal square tiles
   ============================================================================= */

.section-gallery {
    background-color: rgba(226, 196, 249, 0.85);
    padding: 80px 0;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 540px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .gallery-preview {
        max-width: 720px;
        gap: 14px;
    }
}

@media (min-width: 992px) {
    .gallery-preview {
        max-width: 900px;
        gap: 16px;
    }
}

.gallery-preview .g-item {
    aspect-ratio: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px;
    line-height: 0;
    box-shadow: 0 6px 24px rgba(45, 20, 65, 0.1);
    position: relative;
}

.gallery-preview .g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-preview .g-item:hover img {
    transform: scale(1.02);
}

.gallery-preview .g-item .img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
}

.gallery-preview--loading {
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 16px;
}

.gallery-preview__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
}

.gallery-preview__loading i {
    font-size: 1.75rem;
    opacity: 0.7;
}

@media (max-width: 575.98px) {
    .gallery-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}
