/* ------------------------------------------------------------------ */
/* Design tokens — Majnuntol Osti brand palette                        */
/* ------------------------------------------------------------------ */

:root {
    --cream: #f7eedc;
    --cream-soft: #fbf6ea;
    --caramel: #d19763;
    --caramel-deep: #bd8250;
    --teal: #123f3d;
    --teal-deep: #0c2e2c;
    --ember: #e15a2a;
    --ink: #241c12;
    --line: rgba(18, 63, 61, .28);
    --line-soft: rgba(18, 63, 61, .14);

    --bs-link-color-rgb: 18, 63, 61;
    color-scheme: light;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, .display-title {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--teal);
    letter-spacing: -.01em;
}

.text-muted-brand {
    color: rgba(36, 28, 18, .66) !important;
}

.section-eyebrow {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal);
    font-size: 1.05rem;
}

.app-shell {
    max-width: 560px;
    margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Emoji: SVG assets so they look the same on every device             */
/* ------------------------------------------------------------------ */

.emoji {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    vertical-align: -.2em;
    object-fit: contain;
}

.emoji-lg {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
}

.emoji-xl {
    width: 3rem;
    height: 3rem;
}

/* ------------------------------------------------------------------ */
/* Buttons and surfaces                                                */
/* ------------------------------------------------------------------ */

.btn-brand {
    --bs-btn-color: var(--cream-soft);
    --bs-btn-bg: var(--teal);
    --bs-btn-border-color: var(--teal);
    --bs-btn-hover-color: var(--cream-soft);
    --bs-btn-hover-bg: var(--teal-deep);
    --bs-btn-hover-border-color: var(--teal-deep);
    --bs-btn-active-bg: var(--teal-deep);
    --bs-btn-active-border-color: var(--teal-deep);
    --bs-btn-disabled-color: var(--cream-soft);
    --bs-btn-disabled-bg: #6c8a88;
    --bs-btn-disabled-border-color: #6c8a88;
    font-weight: 700;
    box-shadow: 4px 4px 0 var(--teal-deep);
}

.btn-brand:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--teal-deep);
}

.btn-brand-outline {
    --bs-btn-color: var(--teal);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--teal);
    --bs-btn-hover-color: var(--cream-soft);
    --bs-btn-hover-bg: var(--teal);
    --bs-btn-hover-border-color: var(--teal);
    --bs-btn-active-bg: var(--teal-deep);
    --bs-btn-active-border-color: var(--teal-deep);
    border-width: 2px;
    font-weight: 700;
}

.brand-card {
    background: var(--cream-soft);
    border: 2px dashed var(--line);
    border-radius: 16px;
}

.brand-badge {
    background: var(--ember);
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 700;
}

.brand-tag {
    display: inline-block;
    background: rgba(209, 151, 99, .28);
    color: var(--teal);
    font-weight: 700;
    font-size: .78rem;
    padding: .25rem .7rem;
    border-radius: 999px;
}

/* ------------------------------------------------------------------ */
/* Customer hero (landing)                                             */
/* ------------------------------------------------------------------ */

.brand-hero {
    background: var(--caramel);
    border-bottom: 2px solid var(--teal);
    padding: 2.5rem 1.5rem 2.25rem;
}

.brand-hero-logo {
    height: 46px;
    width: auto;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.brand-hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    line-height: .94;
    font-weight: 900;
    margin: 0;
}

.brand-hero h1 .outline {
    -webkit-text-stroke: 2px var(--teal);
    color: var(--caramel);
}

.brand-hero .lede {
    margin-top: 1rem;
    color: var(--teal-deep);
    font-weight: 500;
    line-height: 1.6;
}

.restaurant-logo {
    width: 84px;
    height: 84px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--cream-soft);
    border: 2px solid var(--teal);
}

.restaurant-logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--teal);
}

/* ------------------------------------------------------------------ */
/* Landing choices                                                     */
/* ------------------------------------------------------------------ */

.choice-card {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1.4rem;
    border: 2px dashed var(--line);
    border-radius: 16px;
    background: var(--cream-soft);
    text-decoration: none;
    color: inherit;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.choice-card:hover,
.choice-card:focus-visible {
    transform: translateY(-2px);
    border-style: solid;
    border-color: var(--teal);
}

.choice-card:active {
    transform: translateY(0);
}

.choice-card h2, .choice-card .h5 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--teal);
    margin: 0;
}

.choice-icon {
    font-size: 1.9rem;
    line-height: 1;
}

/* ------------------------------------------------------------------ */
/* Menu                                                                */
/* ------------------------------------------------------------------ */

.menu-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
}

.menu-category-nav {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .35rem;
    scrollbar-width: none;
}

.menu-category-nav::-webkit-scrollbar {
    display: none;
}

.menu-category-chip {
    flex: 0 0 auto;
    padding: .45rem 1.05rem;
    border-radius: 999px;
    border: 2px solid var(--line);
    background: transparent;
    color: var(--teal);
    font-size: .92rem;
    font-weight: 700;
    white-space: nowrap;
}

.menu-category-chip.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--cream-soft);
}

.menu-card {
    display: flex;
    gap: 1rem;
    padding: .9rem;
    border: 2px dashed var(--line);
    border-radius: 16px;
    background: var(--cream-soft);
}

.menu-card.is-unavailable {
    opacity: .6;
}

.menu-card-image {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
    background: rgba(209, 151, 99, .25);
}

.menu-card-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.menu-card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.menu-card-description {
    font-size: .88rem;
    color: rgba(36, 28, 18, .7);
}

.menu-card-price {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: var(--ember);
    white-space: nowrap;
    padding-left: .75rem;
}

.menu-category-title {
    font-size: 1.6rem;
}

/* ------------------------------------------------------------------ */
/* Reviews                                                             */
/* ------------------------------------------------------------------ */

.rating-stars {
    display: flex;
    justify-content: center;
    gap: .35rem;
}

.rating-star {
    border: 0;
    background: transparent;
    line-height: 1;
    padding: .1rem;
    color: rgba(18, 63, 61, .3);
    transition: transform .12s ease, color .12s ease;
}

.rating-star svg {
    width: 2.6rem;
    height: 2.6rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.rating-star.is-selected {
    color: var(--ember);
}

.rating-star.is-selected svg {
    fill: currentColor;
}

.rating-star:active {
    transform: scale(.92);
}

.review-form textarea {
    resize: vertical;
}

.form-control:focus, .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 .2rem rgba(18, 63, 61, .15);
}

.success-check {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(18, 63, 61, .12);
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
}

.attendance-photo-box {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    border: 2px dashed var(--line);
    background: rgba(209, 151, 99, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.attendance-photo-box img:not(.emoji),
.attendance-photo-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attendance-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-right: .5rem;
    border-radius: 50%;
    background: var(--teal);
    color: var(--cream-soft);
    font-size: .78rem;
    font-weight: 700;
}

.attendance-location {
    font-size: .9rem;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: .65rem .8rem;
    color: rgba(36, 28, 18, .75);
}

.attendance-location.is-located {
    border-color: rgba(15, 140, 126, .6);
    background: rgba(15, 140, 126, .07);
}

.attendance-location.is-missing {
    border-color: rgba(225, 90, 42, .5);
    background: rgba(225, 90, 42, .06);
}

.attendance-map {
    width: 100%;
    height: 160px;
    border: 0;
    border-radius: 10px;
    display: block;
}

.photo-button {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 0;
    cursor: pointer;
}

.photo-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    object-fit: contain;
}

.attendance-map-large {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 12px;
    display: block;
}

.attendance-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
}

/* ------------------------------------------------------------------ */
/* Admin panel                                                         */
/* ------------------------------------------------------------------ */

.admin-body {
    background: #f4f1ea;
}

.admin-sidebar {
    background: var(--teal-deep);
    color: rgba(251, 246, 234, .78);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(251, 246, 234, .78);
    border-radius: 10px;
    padding: .6rem .85rem;
    font-weight: 600;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-sidebar .nav-link.active {
    background: var(--ember);
    color: #fff;
}

.admin-brand {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--cream-soft);
    font-weight: 700;
    font-size: 1.15rem;
}

.metric-card {
    border: 2px dashed var(--line-soft);
    border-radius: 14px;
    background: #fff;
}

.metric-value {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--teal);
}

.metric-label {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(36, 28, 18, .6);
}

.review-chart {
    width: 100%;
    height: 320px;
}

/* Menu item photos ------------------------------------------------- */

.menu-thumb {
    display: flex;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(209, 151, 99, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-thumb .emoji {
    width: 1.3rem;
    height: 1.3rem;
}

.menu-image-preview {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(209, 151, 99, .2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-image-preview img:not(.emoji) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-menu-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 34px;
}

/* ------------------------------------------------------------------ */
/* Admin on small screens                                              */
/* ------------------------------------------------------------------ */

/*
 * Without min-width:0 a flex child refuses to shrink below its content, so a
 * wide table would stretch the whole page and force the browser to zoom out.
 */
.admin-content {
    min-width: 0;
}

/* Tables scroll inside their own box instead of crushing their columns. */
.admin-table {
    min-width: 520px;
}

.table-responsive {
    max-width: 100%;
}

.admin-restaurant-select {
    max-width: 40vw;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    /*
     * A six-column table cannot fit a phone, so each row becomes a card and the
     * sideways scrolling disappears entirely.
     */
    .admin-table {
        min-width: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table,
    .admin-table tbody,
    .admin-table tr {
        display: block;
        width: 100%;
    }

    /* width:auto, otherwise the inline fields below would each claim a full row. */
    .admin-table td {
        display: block;
        width: auto;
    }

    .admin-table tr {
        position: relative;
        background: #fff;
        border: 1px solid var(--line-soft);
        border-radius: 14px;
        padding: .75rem;
        margin-bottom: .6rem;
    }

    .admin-table td {
        border: 0;
        padding: .1rem 0;
    }

    /* Short fields sit side by side instead of one per line. */
    .admin-table td[data-label] {
        display: inline-block;
        vertical-align: top;
        margin-right: 1.25rem;
    }

    .admin-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: .65rem;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: rgba(36, 28, 18, .5);
    }

    .admin-table td[data-label="Comment"] {
        display: block;
        margin-right: 0;
    }

    /* The photo is pinned to the left of the card, text flows beside it. */
    .admin-table tr:has(.menu-thumb) {
        padding-left: calc(.75rem + 64px + .75rem);
        min-height: calc(64px + 1.5rem);
    }

    .admin-table td:has(.menu-thumb) {
        position: absolute;
        left: .75rem;
        top: .75rem;
        width: 64px;
        padding: 0;
    }

    .admin-table td:has(> .badge) {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
        vertical-align: bottom;
        padding-bottom: .2rem;
    }

    .admin-table td.text-end {
        text-align: left !important;
        margin-top: .35rem;
    }

    .admin-table td.text-end .btn,
    .admin-table td:has(> .badge) .badge {
        font-size: .8rem;
    }

    .admin-table td.text-end .btn {
        margin: 0 .4rem .2rem 0;
    }

    .admin-table .menu-thumb {
        width: 64px;
        height: 64px;
    }

    /* Long descriptions stay to two lines on a card. */
    .admin-cell-note {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .admin-topbar {
        padding-inline: .75rem;
    }

    /* The section name is already in the sidebar; give the controls the room. */
    .admin-topbar-title {
        display: none;
    }

    .admin-restaurant-select {
        max-width: none;
        flex: 1 1 auto;
        min-width: 0;
    }

    .chart-period-group {
        width: 100%;
    }

    .chart-period-group .btn {
        flex: 1 1 0;
        padding-inline: .35rem;
    }

    .review-chart {
        height: 260px;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .admin-table .btn-sm {
        padding: .35rem .6rem;
    }

    .admin-table td,
    .admin-table th {
        padding-block: .6rem;
    }
}

@media (max-width: 575.98px) {
    .admin-body .container-fluid {
        padding-inline: .75rem;
    }

    .admin-body .card-body {
        padding: 1rem;
    }

    /* Forms get the whole screen, so nothing is squeezed into a narrow column. */
    .modal-fullscreen-sm-down .modal-body {
        padding: 1rem;
    }

    .menu-photo-row {
        gap: .75rem !important;
    }

    .menu-image-preview {
        flex: 0 0 72px;
        width: 72px;
        height: 72px;
    }

    .menu-photo-row input[type="file"] {
        font-size: .82rem;
    }

    .modal-footer .btn {
        flex: 1 1 auto;
    }
}

.admin-table td, .admin-table th {
    vertical-align: middle;
}

.qr-preview {
    width: 240px;
    max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* Public site (/)                                                     */
/* ------------------------------------------------------------------ */

.site-body {
    background: var(--cream);
}

.site-wrap {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream-soft);
    border-bottom: 1px solid var(--line);
}

.site-brand img {
    height: 34px;
    width: auto;
    border-radius: 6px;
}

.site-links a {
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink);
    opacity: .85;
}

.site-links a:hover {
    opacity: 1;
}

.call-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal);
    color: var(--cream-soft);
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
}

.call-pill-light {
    background: rgba(255, 255, 255, .14);
}

.site-hero {
    background: var(--caramel);
    padding: 86px 0 64px;
}

.site-hero h1 {
    font-size: clamp(3.2rem, 9vw, 6.4rem);
    line-height: .92;
    font-weight: 900;
    margin: 0;
}

.site-hero h1 .outline {
    -webkit-text-stroke: 2px var(--teal);
    color: var(--caramel);
}

.site-lede {
    max-width: 520px;
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--teal-deep);
    font-weight: 500;
}

.site-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.site-highlights li {
    background: rgba(18, 63, 61, .1);
    color: var(--teal-deep);
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .88rem;
    font-weight: 600;
}

.site-map-card {
    background: var(--cream-soft);
    border: 2px dashed var(--line);
    border-radius: 16px;
    padding: 20px;
}

.site-map-frame {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 12px;
    display: block;
}

.site-about {
    background: var(--teal);
    padding: 64px 0;
}

.site-about-title {
    color: var(--cream-soft);
    font-size: 2rem;
    line-height: 1.15;
}

.site-about-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #dce7e3;
    max-width: 52ch;
}

.site-menu {
    padding: 80px 0 40px;
}

.site-section-head {
    max-width: 640px;
    margin-bottom: 44px;
}

.site-section-head h2 {
    font-size: 2.4rem;
}

.site-section-head p {
    margin-top: 12px;
    font-size: 1.02rem;
    line-height: 1.6;
    opacity: .85;
}

.site-menu-card {
    background: var(--cream-soft);
    border: 2px dashed var(--line);
    border-radius: 16px;
    padding: 26px 26px 20px;
}

.site-menu-tag {
    display: inline-block;
    background: var(--ember);
    color: #fff;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    font-size: .95rem;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.site-menu-card h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}

.site-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    font-size: .98rem;
    font-weight: 600;
}

.site-menu-list li:last-child {
    border-bottom: none;
}

.site-menu-list .price {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    color: var(--ember);
    white-space: nowrap;
    padding-left: 12px;
}

.site-menu-note {
    margin-top: 28px;
    font-size: .92rem;
    opacity: .75;
    font-style: italic;
}

.site-promo {
    background: var(--ember);
    color: #fff;
    text-align: center;
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 26px 28px;
}

.site-visit {
    padding: 72px 0;
}

.site-visit-card {
    background: var(--cream-soft);
    border: 2px dashed var(--line);
    border-radius: 16px;
    padding: 28px;
}

.site-visit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.site-phone-link {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--ember);
    text-decoration: none;
}

.site-qr {
    background: var(--cream-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 64px 0;
}

.site-footer {
    background: var(--teal-deep);
    color: rgba(251, 246, 234, .78);
    padding: 48px 0 32px;
}

.site-footer-logo {
    height: 34px;
    width: auto;
    border-radius: 6px;
}

.site-rules {
    margin-top: 28px;
    font-size: .95rem;
    line-height: 1.6;
    max-width: 62ch;
}

.site-copyright {
    font-size: .85rem;
    opacity: .7;
}

