﻿/* =========================================================
   Sakura — Site CSS (mobile-first)
   - Brand tokens
   - Base + Utilities
   - Navbar / Footer
   - Sections / Cards
   - Admin tables
   - Booking page helpers (kv grid, slots, sticky)
   ========================================================= */

/* ===== Brand tokens ===== */
:root {
    --sakura: #ff41b0;
    --ink: #1a1f1c;
    --muted: #6c757d;
    --bg-grad-start: #fff7fb;
    --bg-grad-end: #f6fff8;
    --border: #e5e7eb;
    --chip: #f8fafc;
    --chip-h: #eef6ff;
}

/* ===== Base ===== */
html, body {
    height: 100%;
}

html, body {
    font-family: Poppins,system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;
    color: var(--ink);
}

.bg-body {
    background: linear-gradient(180deg,var(--bg-grad-start),var(--bg-grad-end));
}

a {
    text-decoration: none;
}

    a.link-underline {
        text-decoration: underline;
        text-underline-offset: 2px;
    }

/* Layout shell (sticky footer spacing) */
body.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
    padding-inline: clamp(12px,4vw,32px);
    padding-top: clamp(18px,3vw,36px);
    padding-bottom: clamp(24px,6vh,56px);
}

/* Global gutters helper for wide pages */
.site-gutters {
    padding-inline: clamp(12px,4vw,32px);
}

/* ===== Navbar / Buttons ===== */
.logo {
    height: 36px;
    width: auto;
    border-radius: 6px;
    display: block;
}

.brand-text {
    font-family: "Playfair Display",serif;
    font-weight: 600;
    letter-spacing: .5px;
}

.nav-link {
    font-weight: 500;
}

.btn-primary {
    background-color: var(--sakura);
    border-color: var(--sakura);
}

    .btn-primary:hover {
        filter: brightness(.95);
    }

.btn-primary-soft {
    background: #ffd7ef;
    border: 1px solid #ffc6e9;
    color: #7a1f58;
}

    .btn-primary-soft:hover {
        background: #ffc6e9;
    }

/* ===== Footer (clean) ===== */
.footer-clean {
    background: #fff;
    border-top: 1px solid #eaeaea;
    padding: 1.5rem 0;
    font-size: .95rem;
    color: #333;
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-left {
    max-width: 500px;
    line-height: 1.6;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-clean a {
    color: #7b3b66;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease,color .2s ease;
}

    .footer-clean a:hover {
        color: #532345;
        border-color: currentColor;
    }

@media (max-width:768px) {
    .footer-wrap {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-left {
        text-align: center;
    }

    .footer-right {
        justify-content: center;
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: clamp(3rem,6vw,6rem) 0;
    overflow: hidden;
    background: radial-gradient(1200px 600px at 90% 10%, rgba(255,65,176,.12), transparent 60%), radial-gradient(800px 400px at 10% 80%, rgba(56,142,60,.08), transparent 60%);
}

.text-sakura {
    color: var(--sakura);
}

.hero-branch {
    max-height: 420px;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,.15));
}

/* Floating petals animation layer */
.petals-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("/images/sakura-petals.png") no-repeat;
    background-size: 1200px auto;
    background-position: 120% -20%;
    opacity: .55;
    animation: drift 22s linear infinite;
}

@keyframes drift {
    0% {
        transform: translate3d(0,0,0);
        background-position: 120% -20%;
    }

    50% {
        transform: translate3d(-1%,1%,0);
        background-position: 75% 10%;
    }

    100% {
        transform: translate3d(0,0,0);
        background-position: 120% -20%;
    }
}

/* ===== Sections / Cards ===== */
.section {
    padding: clamp(2.5rem,6vw,4.5rem) 0;
}

.section-title {
    font-family: "Playfair Display",serif;
    font-weight: 600;
}

.card-service {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .card-service:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,.10);
    }

    .card-service .card-title {
        font-weight: 600;
    }

/* Opening hours extras */
.bg-light {
    background: #fffdfd;
}

.petals-static {
    max-height: 260px;
    opacity: .8;
}

/* Alerts */
.alert {
    border-radius: .75rem;
}

/* ===== Admin styling ===== */
.admin-header h2 {
    font-weight: 700;
    letter-spacing: .3px;
}

.bg-admin {
    background: #ffd7ef;
    color: #7a1f58;
}

.admin-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
}

.sortable {
    color: inherit;
    text-decoration: none;
}

    .sortable:hover {
        text-decoration: underline;
    }

.row-pending {
    background: linear-gradient(90deg, rgba(255,245,200,.35), transparent);
}

.row-ok {
    background: linear-gradient(90deg, rgba(209,250,229,.4), transparent);
}

.row-declined {
    background: linear-gradient(90deg, rgba(222,226,230,.5), transparent);
}

.row-canceled {
    background: linear-gradient(90deg, rgba(248,249,250,.6), transparent);
}

.table-hover tbody tr:hover {
    filter: brightness(.99);
}

.status-badge {
    font-weight: 600;
}

/* ===== Booking page helpers ===== */

/* Summary definition list — fixes glued label/value lines on mobile */
.kv {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
}

    .kv dt {
        color: #111827;
        font-weight: 500;
    }

    .kv dd {
        margin: 0;
        justify-self: end;
        text-align: right;
        max-width: 100%;
    }

        .kv dd, .kv dd * {
            word-break: break-word;
            hyphens: auto;
        }

@media (max-width:575.98px) {
    .kv {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

        .kv dd {
            justify-self: start;
            text-align: left;
        }
}

/* Time slots responsive grid */
.slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.time {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--chip);
    border: 1.5px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    color: #111827;
    user-select: none;
    outline: none;
}

    .time:hover {
        background: var(--chip-h);
        border-color: #0d6efd;
    }

    .time.selected {
        background: #dceaff;
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13,110,253,.15);
    }

    .time:focus-visible {
        box-shadow: 0 0 0 3px rgba(13,110,253,.35);
    }

/* Sticky summary on mobile with safe-area */
.sticky {
    position: sticky;
    top: 18px;
}

@media (max-width:991.98px) {
    .sticky {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        padding: 12px max(12px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-right));
        background: #fff;
        border-top: 1px solid #eef1f4;
    }

        .sticky .cardx {
            box-shadow: none;
            border: none;
        }
    /* add extra bottom room so content isn't hidden by sticky */
    .site-gutters, .main-content {
        padding-bottom: 120px;
    }
}

/* Card look shared by booking/admin */
.cardx {
    background: #fff;
    border: 1px solid #eef1f4;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

    .cardx .hd {
        padding: 14px 16px;
        border-bottom: 1px solid #f2f4f7;
    }

    .cardx .bd {
        padding: 16px;
    }

/* Chips bar (filters: morning/afternoon/evening) */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.chip {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
}

    .chip[aria-pressed="true"] {
        border-color: #0d6efd;
        background: #eef6ff;
    }

/* Inputs/focus */
.form-control {
    border-color: var(--border);
    padding: .6rem .75rem;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
    }

/* Small helpers */
.muted {
    color: var(--muted);
}

.small {
    font-size: .95rem;
}

.row-opt {
    outline: none;
}

/* ===== Arch image (optional hero block you included) ===== */
.arch-wrap {
    position: relative;
    max-width: 680px;
    width: 100%;
    aspect-ratio: 1/1;
}

.arch-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.arch-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 22%;
    width: min(80%, 520px);
    text-align: center;
    padding: clamp(12px,2.5vw,20px);
    color: #1f1f1f;
    text-shadow: 0 1px 2px rgba(0,0,0,.08);
}

@media (max-width:576px) {
    .arch-text {
        top: 26%;
        width: 86%;
    }
}
