:root {
    --bg: #f7f7f8;
    --surface: #ffffff;
    --text: #191919;
    --muted: #666;
    --line: rgba(0,0,0,0.08);
    --shadow-soft: 0 10px 28px rgba(0,0,0,0.08);
    --shadow-header: 0 4px 18px rgba(0,0,0,0.06);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --content-gap: 14px;
    --header-height: 78px;
    --bottom-nav-height: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: var(--shadow-header);
}

.site-header__inner {
    min-height: var(--header-height);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px var(--content-gap);
}

.site-header__left,
.site-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 58px;
}

.site-header__center {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.site-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.site-banner img {
    width: auto;
    max-height: 54px;
    object-fit: contain;
}

.site-banner__fallback {
    font-weight: 700;
    font-size: 1.15rem;
}

.social-strip__link {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    background: #fff;
    flex: 0 0 auto;
}

.social-strip__link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-switch__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    padding: 2px;
}

.lang-switch__flag.is-active {
    box-shadow: 0 0 0 1px rgba(0,0,0,0.18), 0 2px 10px rgba(0,0,0,0.15);
}

.flag {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: inline-block;
    overflow: hidden;
    position: relative;
}

.flag--canada {
    background: linear-gradient(to right, #d80621 0 25%, #fff 25% 75%, #d80621 75% 100%);
}

.flag--canada::after {
    content: "🍁";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.flag--quebec {
    background: #1652c5;
}

.flag--quebec::before,
.flag--quebec::after {
    content: "";
    position: absolute;
    background: #fff;
}
.flag--quebec::before {
    left: 42%;
    top: 0;
    width: 16%;
    height: 100%;
}
.flag--quebec::after {
    top: 42%;
    left: 0;
    width: 100%;
    height: 16%;
}

.page-shell {
    padding: 14px var(--content-gap) calc(var(--bottom-nav-height) + 22px);
}

.bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 8px;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 22px 22px 16px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    padding: 8px 10px;
    min-height: var(--bottom-nav-height);
}

.bottom-nav__viewport {
    overflow: hidden;
}

.bottom-nav__track {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.bottom-nav__track::-webkit-scrollbar { display:none; }

.bottom-nav__item {
    min-width: 74px;
    padding: 10px 12px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    color: #666;
    font-size: 0.82rem;
    font-weight: 500;
    flex: 0 0 auto;
}

.bottom-nav__item.is-active {
    color: #141414;
    background: rgba(0,0,0,0.06);
}

.bottom-nav__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.bottom-nav__icon img { width: 18px; height: 18px; object-fit: contain; }
.bottom-nav__icon--fallback { font-size: 1rem; line-height: 1; }

.bottom-nav__arrow {
    appearance: none;
    border: 0;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    font-size: 20px;
    color: #222;
    display: none;
}
.bottom-nav__arrow.is-visible { display: inline-flex; align-items: center; justify-content: center; }

.bottom-nav.is-even {
    grid-template-columns: 1fr;
}

.bottom-nav.is-even .bottom-nav__arrow {
    display: none !important;
}

.bottom-nav.is-even .bottom-nav__viewport {
    width: 100%;
}

.bottom-nav.is-even .bottom-nav__track {
    display: grid;
    grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    width: 100%;
}

.bottom-nav.is-even .bottom-nav__item {
    min-width: 0;
    width: 100%;
    flex: none;
}

.landing-page,
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.center-card {
    width: min(100%, 420px);
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    padding: 24px;
    text-align: center;
}

.center-card__image {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}
.center-card__image img {
    max-width: 100%;
    max-height: 130px;
    object-fit: contain;
}

.center-card__title {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.center-card__text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
}

.lang-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lang-choice a,
.button-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #141414;
    color: #fff;
    font-weight: 700;
}

.section-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.category-shortcuts {
    position: sticky;
    top: calc(var(--header-height) + 10px);
    z-index: 25;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 18px;
    padding: 10px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 24, 39, 0.06);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.category-shortcuts::-webkit-scrollbar {
    display: none;
}

.category-shortcuts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.category-shortcuts img,
.category-title img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.category-block {
    margin-bottom: 26px;
    scroll-margin-top: calc(var(--header-height) + 86px);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #000;
    font-size: 1.1rem;
    margin: 0 0 14px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.menu-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 10px;
    border: 0;
    text-align: center;
    color: var(--text);
}

.menu-card__thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 8px;
}

.menu-card__name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
}

.menu-card__prices {
    display: block;
    margin-top: 4px;
}

.menu-card__price {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
}

.full-width-image {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 12px;
}
.full-width-image img {
    width: 100%;
    object-fit: cover;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.modal.is-open { display: flex; }

.modal__dialog {
    width: min(100%, 480px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.2);
    padding: 18px;
    position: relative;
}

.modal__close {
    position: absolute;
    right: 12px;
    top: 12px;
    border: 0;
    background: rgba(0,0,0,0.08);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 22px;
    line-height: 1;
}

.modal__name {
    margin: 0 0 6px;
    font-size: 1.3rem;
}

.price-list {
    display: grid;
    gap: 6px;
    margin: 0 0 14px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.modal__text,
.meta-line {
    color: var(--muted);
    line-height: 1.5;
}

.meta-block {
    margin-top: 12px;
}

.meta-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    font-size: 0.85rem;
    font-weight: 600;
}

.deals-list,
.order-grid {
    display: grid;
    gap: 18px;
}

.deal-card,
.order-card,
.contact-card {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
}

.deal-expiry {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 10px;
    font-weight: 600;
}

.deal-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}
.deal-title-row h3 { margin: 0; font-size: 1.15rem; }
.deal-price { font-weight: 700; }
.deal-description { color: var(--muted); line-height: 1.55; margin: 10px 0 0; }

.order-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-card {
    text-align: center;
}

.order-card__logo {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 22px;
    margin-bottom: 12px;
}

.order-card__text { color: var(--muted); line-height: 1.5; }

.contact-layout {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    gap: 12px;
}

.input,
.textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 14px 15px;
    outline: none;
}

.textarea { min-height: 140px; resize: vertical; }

.label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.map-embed {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 22px;
}

.flash {
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 600;
}
.flash--success { background: #eaf8ee; color: #156b33; }
.flash--error { background: #fdecec; color: #8b1c1c; }

.contact-meta {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.verification-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(135deg, #f5f7fb, #fff5f8);
}
.verification-track {
    position: relative;
    height: 74px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(22,82,197,0.12), rgba(255,89,112,0.12));
    overflow: hidden;
    margin-bottom: 12px;
}
.verification-target {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 18px;
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
    transform: translateX(-50%);
}
.verification-knob {
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 46px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.14);
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.verification-slider {
    width: 100%;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 28px 16px;
}

.maintenance-page .social-strip,
.maintenance-page .phone-line {
    justify-content: center;
}
.maintenance-page .social-strip { margin: 14px 0; }
.phone-line { font-weight: 700; }

@media (max-width: 420px) {
    .site-header__inner {
        gap: 8px;
        padding-inline: 10px;
    }
    .site-banner img { max-height: 48px; }
    .social-strip__link,
    .lang-switch__flag { width: 26px; height: 26px; }
    .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    :root { --content-gap: 22px; }
    .page-shell {
        max-width: 1080px;
        margin: 0 auto;
        padding-inline: 22px;
    }
    .deals-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .order-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contact-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}


.bottom-nav--even {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 8px;
    z-index: 1000;
    display: block;
    background: #fff;
    border-radius: 22px 22px 16px 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.16);
    padding: 8px 10px;
    min-height: var(--bottom-nav-height);
}

.bottom-nav__grid {
    display: grid;
    grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.bottom-nav--even .bottom-nav__item {
    min-width: 0 !important;
    width: 100%;
    flex: none;
}

.bottom-nav--even .bottom-nav__label {
    display: block;
    width: 100%;
    text-align: center;
}


/* Step 1 public layout stabilization */
.lang-switch {
    justify-content: flex-end;
}

.lang-switch__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.section-card--plain {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.category-shortcuts__sep {
    color: rgba(0,0,0,0.22);
    align-self: center;
}

.deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.deal-card--compact {
    padding: 14px;
    border-radius: 22px;
}

.deal-expiry--compact {
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.deal-card__image {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    background: #f8f8f8;
    padding: 10px;
}

.deal-card__name {
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.2;
}

.deal-card__price {
    font-weight: 800;
    margin-bottom: 8px;
}

.deal-card__text {
    margin-top: 0;
    font-size: 0.92rem;
}

.bottom-nav__arrow--left,
.bottom-nav__arrow--right {
    flex: 0 0 auto;
}

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

@media (min-width: 768px) {
    .deals-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
