/* =============================================================================
   shared.css — Becca's Cakes and Bakes
   Styles shared across all pages: hero, navbar, footer, typography, utilities.
   Page-specific styles live in each page's own CSS file.
   ============================================================================= */


/* =============================================================================
   CSS VARIABLES
   ============================================================================= */

:root {
    --pink: #AB1D79;
    --pink-dark: #7c1457;
    --pink-light: #e2c4f9;
    --cream: #FFEAFE;
    --deep: #2a1a2e;
    --body-text: #4a3a52;
    --muted: #5a3a6e;
    --navbar-bg: rgba(226, 196, 249, 0.85);
}


/* =============================================================================
   BASE
   ============================================================================= */

html {
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    background-color: var(--cream);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}


/* =============================================================================
   NAVBAR
   Strategy:
   - Desktop ≥1200px : split nav, large centred logo (160px), full gaps
   - Mid 992–1199px  : split nav, smaller logo (90px), tighter gaps
   - Collapsed <992px: hamburger, inline logo, stacked centred links
   ============================================================================= */

.navbar {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background-color: var(--navbar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 60px;
    padding: 0 1.5rem;
    overflow: visible;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

.navbar:hover {
    background-color: rgba(226, 196, 249, 0.95);
}

.navbar-padding {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-nav .nav-link {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    padding: 0.5rem 0;
    white-space: nowrap;
}

/* Centred logo — desktop only */
.navbar-brand.navbar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    overflow: visible;
}

.navbar-brand.navbar-center img {
    height: 160px;
    width: auto;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.navbar-brand.navbar-center img:hover {
    transform: scale(1.05);
}

/* Mobile logo shown beside hamburger */
.navbar-brand.d-lg-none img {
    height: 50px;
    width: auto;
    border-radius: 10px;
}

.navbar-brand img {
    width: auto;
    border-radius: 15px;
}

/* Shop CTA button */
.nav-shop-btn {
    font-size: 0.85rem;
    padding: 0.35rem 1rem;
    line-height: 1.4;
    white-space: nowrap;
}

.nav-shop-btn--active {
    opacity: 0.85;
    box-shadow: 0 0 0 3px rgba(171, 29, 121, 0.25);
}

/* Mid breakpoint: 992px–1199px — expanded nav but tight space */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar {
        padding: 0 0.5rem;
    }

    .navbar-brand.navbar-center img {
        height: 90px;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.78rem;
    }

    .nav-shop-btn {
        font-size: 0.75rem;
        padding: 0.28rem 0.7rem;
    }
}

/* Mobile: <992px — hamburger, stacked centred links */
@media (max-width: 991.98px) {
    .navbar {
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        padding: 0.5rem 1rem;
        border-radius: 14px;
    }

    .navbar-brand.navbar-center {
        display: none !important;
    }

    .navbar-nav {
        gap: 0;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0.5rem 0;
        text-align: center;
    }

    /* Override Bootstrap me-auto / ms-auto so both sides centre equally */
    .navbar-nav.me-auto,
    .navbar-nav.ms-auto {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.55rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-item--shop {
        margin-top: 0.5rem;
        margin-left: 0 !important;
        width: 100%;
    }

    .nav-shop-btn {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Small phones: <576px */
@media (max-width: 575.98px) {
    .navbar {
        width: 96%;
        padding: 0.4rem 0.75rem;
        border-radius: 12px;
    }
}


/* =============================================================================
   PAGE HERO  (all inner pages)
   ============================================================================= */

.page-hero {
    position: relative;
    width: 100%;
    padding: 30vh 0 10vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-light) 0%, #f9d4ec 50%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink), transparent 70%);
    opacity: 0.35;
    top: -150px;
    left: -100px;
}

.page-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink-light), transparent 70%);
    opacity: 0.35;
    bottom: -100px;
    right: -80px;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    animation: fadeUp 0.9s ease both;
}

.page-hero__content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--deep);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.page-hero__content .hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero__content .hero-body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 460px;
    margin: 1rem auto;
    line-height: 1.7;
}

.hero-divider {
    width: 60px;
    height: 3px;
    background-color: var(--pink);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Enough top padding so content clears the floating navbar on mobile */
@media (max-width: 991.98px) {
    .page-hero {
        padding: 20vh 1rem 6vh;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* =============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================= */

.section-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pink);
    display: block;
    margin-bottom: 0.6rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--deep);
    line-height: 1.25;
    margin-bottom: 1.2rem;
}

.section-body {
    font-size: 1.05rem;
    color: var(--body-text);
    line-height: 1.85;
    font-weight: 300;
}


/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-brand {
    background-color: var(--pink);
    color: #fff;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
    transition: background-color 0.3s ease;
}

.btn-brand:hover {
    background-color: var(--pink-dark);
    color: #fff;
}

/* Two names for the same outline style — both kept for compatibility */
.btn-brand-outline,
.btn-outline-brand {
    color: var(--pink);
    border: 2px solid var(--pink);
    background-color: transparent;
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus,
.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background-color: var(--pink);
    color: #fff;
    border-color: var(--pink);
}

.btn-hero-order {
    font-size: 0.92rem;
    padding: 0.55rem 1.6rem;
    box-shadow: 0 4px 16px rgba(171, 29, 121, 0.3);
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-hero-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(171, 29, 121, 0.4);
}

/* =============================================================================
   TIKTOK CARDS
   ============================================================================= */

.tiktok-thumb {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    object-position: top;
}

.tiktok-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.tiktok-card .card-body .btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
}


/* =============================================================================
   FOOTER
   ============================================================================= */

footer,
footer h6,
footer p,
footer a,
footer .text-reset {
    font-family: 'Lato', sans-serif;
}

footer h6 {
    letter-spacing: 0.12em;
    color: var(--deep);
}

footer a,
footer p {
    font-weight: 300;
}

.footer-copyright {
    background-color: rgba(0, 0, 0, 0.05);
}

.footer-social-facebook {
    background-color: #3b5998;
}

.footer-social-instagram {
    background-color: #ac2bac;
}

.footer-social-tiktok {
    background-color: #000000;
}

.footer-social-linkedin {
    background-color: #0082ca;
}

.footer-social-email {
    background-color: var(--pink);
}

.footer-newsletter__sub {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 1rem;
}


/* =============================================================================
   MISC UTILITIES
   ============================================================================= */

.img-placeholder {
    background: linear-gradient(135deg, var(--pink-light) 0%, #f9d4ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--pink);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    gap: 8px;
}

.img-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.g-recaptcha,
#recaptcha-container,
.recaptcha {
    display: flex !important;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.modal-content {
    position: relative;
    background-color: var(--pink-light);
}

.modal-content .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}


/* =============================================================================
   BREVO SIGNUP OVERLAY  (injected by components.js on every page)
   ============================================================================= */

#sib-form-root {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

#signup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#signup-overlay.is-visible {
    display: flex;
    opacity: 0;
}

#signup-overlay.is-open {
    opacity: 1;
}

#signup-box {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 500px;
    width: 92%;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(16px);
    transition: transform 0.35s ease;
}

#signup-overlay.is-open #signup-box {
    transform: translateY(0);
}

#signup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
}

#signup-close:hover {
    color: #333;
}

/* Override sib-styles.css font on every page */
#signup-form-slot,
#signup-form-slot *,
.sib-form,
.sib-form * {
    font-family: 'Lato', sans-serif !important;
}

.sib-form-block--heading p {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem;
    color: var(--deep);
}

/* ── Cross-contamination notice ── */
.notice-banner {
    background: #fff8e7;
    border: 1px solid #f0dfa0;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 0.88rem;
    color: #6b5000;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 44px;
    text-align: center;
    line-height: 1.6;
}

.notice-banner strong {
    font-weight: 700;
}

/* =============================================================================
   GLOBAL CART — FAB, drawer, overlay
   Injected on every page by components.js. Styles live here so they apply
   site-wide regardless of which page the user is on.
   ============================================================================= */

/* ── Floating cart button — fixed, top-right desktop / bottom-right mobile ── */
.cart-fab {
    position: fixed;
    top: 20px;
    right: 28px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pink);
    color: white;
    border: none;
    font-size: 1.2rem;
    box-shadow: 0 6px 24px rgba(171, 29, 121, 0.4);
    cursor: pointer;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 32px rgba(171, 29, 121, 0.5);
}

.cart-fab__count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: white;
    color: var(--pink);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pink);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cart-fab.has-items .cart-fab__count {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .cart-fab {
        top: auto;
        bottom: 28px;
    }
}

/* ── Cart overlay ── */
#cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1050;
}

#cart-overlay.is-visible {
    display: block;
}

/* ── Cart drawer ── */
#cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 380px;
    max-width: 100vw;
    background: white;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

#cart-drawer.is-open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 1.5rem 1rem;
    border-bottom: 1px solid #f0e4f8;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--deep);
    margin: 0;
}

#cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
}

#cart-close:hover {
    color: var(--deep);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
    color: var(--muted);
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    padding: 3rem 0;
    text-align: center;
}

.cart-empty i {
    font-size: 2.5rem;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0e4f8;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item__info {
    flex: 1;
}

.cart-item__name {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 2px;
}

.cart-item__price {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    color: var(--pink);
    font-weight: 700;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--deep);
}

.cart-footer {
    padding: 1.25rem 1.5rem;
    border-top: 2px solid #f0e4f8;
    background: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep);
    margin-bottom: 14px;
}

/* ── Checkout modal ── */
#checkout-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

#checkout-overlay.is-visible {
    display: flex;
}

#checkout-overlay.is-open {
    opacity: 1;
}

#checkout-modal {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(16px);
    transition: transform 0.35s ease;
    padding: 2.5rem 2rem 2rem;
}

#checkout-overlay.is-open #checkout-modal {
    transform: translateY(0);
}

#checkout-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
}

#checkout-close:hover {
    color: #333;
}

.checkout-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--deep);
    margin-bottom: 1.5rem;
}

.checkout-section-label {
    font-family: 'Lato', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 12px;
}

.checkout-field {
    margin-bottom: 1rem;
}

.checkout-field label {
    font-family: 'Lato', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--deep);
    display: block;
    margin-bottom: 6px;
}

.checkout-field .req {
    color: var(--pink);
}

.checkout-field .form-control,
.checkout-field .form-select {
    border: 2px solid var(--pink-light);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--deep);
}

.checkout-field .form-control:focus,
.checkout-field .form-select:focus {
    border-color: var(--pink);
    box-shadow: none;
}

.checkout-field .form-control.is-invalid,
.checkout-field .form-select.is-invalid {
    border-color: #b33a1a;
}

.checkout-error {
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    color: #b33a1a;
    margin-top: 4px;
    display: none;
}

.checkout-hint {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    color: var(--body-text);
    padding: 6px 0;
    border-bottom: 1px solid #f0e4f8;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep);
    padding: 10px 0 0;
}

.checkout-stripe-note {
    font-family: 'Lato', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
}

.checkout-stripe-note i {
    margin-right: 4px;
}

#checkout-loading,
#checkout-error-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
    text-align: center;
    font-family: 'Lato', sans-serif;
    color: var(--muted);
}

/* ── Qty stepper ── */
.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--pink-light);
    background: white;
    color: var(--pink);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.qty-btn:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
}

.qty-val {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--deep);
    min-width: 20px;
    text-align: center;
}

.cart-clear-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: none;
    border: none;
    font-family: 'Lato', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    text-align: center;
    padding: 6px 0;
    transition: color 0.2s ease;
    letter-spacing: 0.04em;
}

.cart-clear-btn:hover {
    color: #b33a1a;
}