/* =============================================================================
   index.css — Becca's Cakes and Bakes
   Page-specific styles for index.html (homepage).
   Shared styles (navbar, footer, typography, buttons) live in shared.css.
   ============================================================================= */

/* ── First bakery banner ─────────────────────────────────────────────────── */
.first-bakery-banner {
    background: var(--pink);
    color: #fff;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.02em;
    padding: 32px 24px;
}


/* =============================================================================
   SCROLL REVEAL — sections fade up on scroll
   ============================================================================= */

.section-story,
.section-categories,
.section-allergen,
.section-tiktok,
.section-reviews,
.section-cta {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.section-story.revealed,
.section-categories.revealed,
.section-allergen.revealed,
.section-tiktok.revealed,
.section-reviews.revealed,
.section-cta.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* =============================================================================
   HERO
   Full-height banner: real photo + gradient overlay + animated copy
   ============================================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner photo */
.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Two-layer gradient:
   bottom-up dark for text legibility + a soft pink tint from the top */
.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(42, 26, 46, 0.80) 0%, rgba(42, 26, 46, 0.30) 50%, transparent 100%),
        linear-gradient(to bottom, rgba(226, 196, 249, 0.25) 0%, transparent 40%);
}

/* Foreground content */
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: fadeUp 0.9s ease both;
}

.hero__eyebrow {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pink-light);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: white;
    line-height: 1.05;
    margin-bottom: 0;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.35s both;
}

.hero__title em {
    font-style: italic;
    color: var(--pink-light);
}

.hero__divider {
    width: 50px;
    height: 3px;
    background: var(--pink-light);
    margin: 1.2rem auto;
    border-radius: 2px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s both;
}

.hero__tagline {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.55s both;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s both;
}

/* Ghost button — white outline, used alongside btn-brand in the hero */
.hero__ghost-btn {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    transition: background 0.25s ease, border-color 0.25s ease;
    display: inline-block;
}

.hero__ghost-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    color: white;
}

/* Animated scroll cue at the bottom */
.hero__scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
    text-decoration: none;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.55;
    }

    50% {
        transform: translateX(-50%) translateY(6px);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .hero {
        /* Switch from fixed 100vh to auto so content is never clipped.
           100svh (small viewport height) excludes the browser address bar. */
        height: auto;
        min-height: 100svh;
        padding: 100px 0 80px;
        align-items: flex-end;
    }

    .hero__content {
        padding: 0 24px;
    }

    .hero__title {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
    }

    .hero__tagline {
        font-size: 1rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .hero__actions .btn,
    .hero__ghost-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* Scroll cue hidden — content pushing the fold makes it redundant */
    .hero__scroll-cue {
        display: none;
    }
}

/* Short viewport (e.g. 1024×600 landscape) — scale content down to fit */
@media (max-height: 680px) and (min-width: 768px) {
    .hero__eyebrow {
        font-size: 0.68rem;
        margin-bottom: 0.5rem;
    }

    .hero__title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .hero__divider {
        margin: 0.5rem auto;
    }

    .hero__tagline {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}


/* =============================================================================
   TRUST STRIP
   Lavender band below hero: four quick reassurance signals
   ============================================================================= */

.trust-strip {
    background: linear-gradient(135deg, var(--pink-light) 0%, #f4d8f7 100%);
    padding: 28px 0;
    box-shadow: 0 4px 16px rgba(171, 29, 121, 0.1);
}

.trust-strip__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 28px;
}

.trust-item__icon {
    font-size: 1.4rem;
    color: var(--pink);
    flex-shrink: 0;
}

.trust-item__heading {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--deep);
    letter-spacing: 0.03em;
}

.trust-item__sub {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--muted);
}

.trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(171, 29, 121, 0.2);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .trust-strip__grid {
        gap: 4px;
    }

    .trust-item {
        padding: 8px 16px;
    }

    .trust-divider {
        display: none;
    }
}


/* =============================================================================
   OUR STORY TEASER
   ============================================================================= */

.section-story {
    background: var(--cream);
    padding: 96px 0;
    overflow: hidden;
}

/* Image wrap with floating badge + decorative offset frame */
.story-img-wrap {
    position: relative;
}

.story-img-placeholder {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(171, 29, 121, 0.15);
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-img-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.12);
}

/* Decorative offset border behind the image */
.story-img-accent {
    position: absolute;
    inset: -14px;
    border: 3px solid var(--pink-light);
    border-radius: 24px;
    z-index: 0;
    overflow: hidden;
}

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

    .story-img-accent {
        display: none;
    }
}


/* =============================================================================
   WHAT WE BAKE — category cards
   ============================================================================= */

.section-categories {
    background: rgba(226, 196, 249, 0.5);
    padding: 80px 0;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 2rem 1rem;
    background: white;
    border-radius: 20px;
    border: 2px solid transparent;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(171, 29, 121, 0.14);
    border-color: var(--pink-light);
}

.cat-card__icon {
    font-size: 2.4rem;
    line-height: 1;
}

.cat-card__name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--deep);
    line-height: 1.3;
}

.cat-card__arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cream);
    border: 1.5px solid var(--pink-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
    font-size: 0.7rem;
    transition: background 0.2s ease, border-color 0.2s ease;
    margin-top: 4px;
}

.cat-card:hover .cat-card__arrow {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}

@media (max-width: 575px) {
    .cat-card {
        padding: 1.5rem 0.75rem;
    }

    .cat-card__icon {
        font-size: 2rem;
    }
}


/* =============================================================================
   ALLERGEN ADVICE TEASER
   ============================================================================= */

.section-allergen {
    background: var(--cream);
    padding: 96px 0;
}

/* Preview pill grid — mirrors the real allergen page's pill UI */
.allergen-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.allergen-pill {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* Green — free from */
.allergen-pill--free {
    background: #edf7f0;
    color: #1a7a3a;
    border: 1.5px solid #b5e2c4;
}

/* Yellow — may contain */
.allergen-pill--may {
    background: #fffbec;
    color: #8a6400;
    border: 1.5px solid #f0dfa0;
}

/* Red — contains */
.allergen-pill--contains {
    background: #fff3f0;
    color: #b33a1a;
    border: 1.5px solid #f5c2b4;
}

.allergen-pill--info {
    background: #e7f0ff;
    color: #0d6efd;
    border: 1.5px solid #0d6efd;
}

@media (max-width: 991px) {
    .section-allergen {
        padding: 64px 0;
    }

    .allergen-preview {
        justify-content: center;
    }
}


/* =============================================================================
   TIKTOK SECTION
   ============================================================================= */

.section-tiktok {
    background: rgba(226, 196, 249, 0.5);
    padding: 96px 0;
}

.tiktok-intro {
    max-width: 500px;
}

/* Wrapper gives the thumbnail a fixed aspect ratio and hosts the play badge */
.tiktok-thumb-wrap {
    position: relative;
    overflow: hidden;
}

/* TikTok play badge overlay on thumbnail */
.tiktok-play-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.tiktok-link:hover .tiktok-play-badge {
    background: #010101;
    transform: scale(1.1);
}

.social-follow-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}


/* =============================================================================
   ORDER CTA BANNER
   ============================================================================= */

.section-cta {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    padding: 96px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    .section-cta {
        padding: 64px 0;
    }
}

/* Decorative blobs to match the Our Story mission banner style */
.section-cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    top: -220px;
    left: -180px;
    pointer-events: none;
}

.section-cta::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    bottom: -160px;
    right: -100px;
    pointer-events: none;
}

.section-cta__inner {
    position: relative;
    z-index: 2;
}

/* Override shared section-label colour for use on dark background */
.section-cta .section-label {
    color: #f9d4ec;
}

.section-cta__heading {
    color: white !important;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta__heading em {
    font-style: italic;
    color: var(--pink-light);
}

.section-cta__body {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    max-width: 560px;
    margin: 0 auto 2.2rem;
    line-height: 1.8;
}

.section-cta__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

/* Ghost button variant for the dark CTA banner */
.section-cta__ghost-btn {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 0.65rem 1.8rem;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    display: inline-block;
}

.section-cta__ghost-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: white;
    color: white;
}


/* =============================================================================
   REVIEWS / TESTIMONIALS
   ============================================================================= */

.section-reviews {
    background: var(--cream);
    padding: 96px 0;
}

.reviews-stars-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 0.5rem;
    color: #f5a623;
    font-size: 1rem;
}

.reviews-rating-text {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    margin-left: 4px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.review-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(171, 29, 121, 0.12);
    border-color: var(--pink-light);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0e4f8;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.review-card__name {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--deep);
}

.review-card__stars {
    color: #f5a623;
    font-size: 0.78rem;
    letter-spacing: 2px;
    margin-top: 3px;
}

.review-card__text {
    font-family: 'Lato', sans-serif;
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--body-text);
    line-height: 1.75;
    margin: 0;
    flex: 1;
}

@media (max-width: 767px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .section-reviews {
        padding: 64px 0;
    }
}
