/* ============ DEFAULT THEME TOKENS (Heritage) ============ */

:root {
    --bg: #fff8ef;
    --bg-soft: #fff3e4;
    --text: #3b2115;
    --text-soft: #6b4a37;
    --line: rgba(59, 33, 21, 0.14);

    --accent: #8b1e1e;
    --accent-dark: #6a1414;
    --accent-contrast: #ffffff;
    --accent-2: #b33b00;

    --highlight: #ffd27f;

    --surface: #5a2a1a;
    --surface-text: #fff8ef;
    --surface-text-dim: rgba(255, 248, 239, 0.65);

    --input-bg: #ffffff;
}

/* ============ THEME VARIANTS ============ */

[data-theme="midnight"] {
    --bg: #14100e;
    --bg-soft: #1d1714;
    --text: #f3e9dd;
    --text-soft: #b8a693;
    --line: rgba(243, 233, 221, 0.12);

    --accent: #e0703f;
    --accent-dark: #c15a2d;
    --accent-contrast: #1a120d;
    --accent-2: #c1272d;

    --highlight: #f2c774;

    --surface: #0b0908;
    --surface-text: #f3e9dd;
    --surface-text-dim: rgba(243, 233, 221, 0.55);

    --input-bg: #221a16;
}

[data-theme="saffron"] {
    --bg: #fffaf0;
    --bg-soft: #fff1d6;
    --text: #3a2a06;
    --text-soft: #7a5c1f;
    --line: rgba(58, 42, 6, 0.14);

    --accent: #f2a900;
    --accent-dark: #cf8f00;
    --accent-contrast: #2b1d00;
    --accent-2: #e2431e;

    --highlight: #ff6f59;

    --surface: #2b1d06;
    --surface-text: #fff4dc;
    --surface-text-dim: rgba(255, 244, 220, 0.6);

    --input-bg: #ffffff;
}

[data-theme="mint"] {
    --bg: #f4faf7;
    --bg-soft: #e8f3ee;
    --text: #0f2a22;
    --text-soft: #4f6f63;
    --line: rgba(15, 42, 34, 0.12);

    --accent: #0f7a5c;
    --accent-dark: #0b5c45;
    --accent-contrast: #ffffff;
    --accent-2: #d1495b;

    --highlight: #ffd166;

    --surface: #0f2a22;
    --surface-text: #eefaf4;
    --surface-text-dim: rgba(238, 250, 244, 0.6);

    --input-bg: #ffffff;
}

[data-theme="royal"] {
    --bg: #1c1032;
    --bg-soft: #271947;
    --text: #f1e9ff;
    --text-soft: #bda9e0;
    --line: rgba(241, 233, 255, 0.14);

    --accent: #d4af37;
    --accent-dark: #b8942a;
    --accent-contrast: #1c1032;
    --accent-2: #a24fa6;

    --highlight: #5ec9c0;

    --surface: #120a24;
    --surface-text: #f1e9ff;
    --surface-text-dim: rgba(241, 233, 255, 0.55);

    --input-bg: #271947;
}

[data-theme="terracotta"] {
    --bg: #f7f1e8;
    --bg-soft: #efe4d3;
    --text: #2e2013;
    --text-soft: #6b5a45;
    --line: rgba(46, 32, 19, 0.14);

    --accent: #c1552c;
    --accent-dark: #a1451f;
    --accent-contrast: #ffffff;
    --accent-2: #5f6a3c;

    --highlight: #e3b23c;

    --surface: #3a2a1a;
    --surface-text: #f7f1e8;
    --surface-text-dim: rgba(247, 241, 232, 0.6);

    --input-bg: #ffffff;
}

[data-theme="ocean"] {
    --bg: #f2f7fa;
    --bg-soft: #e3eef4;
    --text: #0d2733;
    --text-soft: #4d707f;
    --line: rgba(13, 39, 51, 0.12);

    --accent: #0f6e8c;
    --accent-dark: #0b5670;
    --accent-contrast: #ffffff;
    --accent-2: #c9522f;

    --highlight: #f4c95d;

    --surface: #0b2733;
    --surface-text: #eaf5f9;
    --surface-text-dim: rgba(234, 245, 249, 0.6);

    --input-bg: #ffffff;
}

[data-theme="slate"] {
    --bg: #f7f7f5;
    --bg-soft: #ececea;
    --text: #171717;
    --text-soft: #5a5a58;
    --line: rgba(23, 23, 23, 0.14);

    --accent: #171717;
    --accent-dark: #000000;
    --accent-contrast: #ffffff;
    --accent-2: #545452;

    --highlight: #d8d3c4;

    --surface: #171717;
    --surface-text: #f2f2f0;
    --surface-text-dim: rgba(242, 242, 240, 0.55);

    --input-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* ANIMATIONS */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.55;
    }
}

.page-head {
    animation: fadeSlideUp 0.6s ease both;
}

p.lede {
    animation: fadeSlideUp 0.6s ease 0.08s both;
}

.btn-row {
    animation: fadeSlideUp 0.6s ease 0.16s both;
}

.tile-grid,
.hero-banner,
.contact-tiles,
.form-card,
form,
.tabs {
    animation: fadeSlideUp 0.6s ease 0.14s both;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-soft);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ============ THEME SWITCHER ============ */

.theme-switcher {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 3000;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #171717;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.theme-toggle-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #8b1e1e, #ffd27f, #0f7a5c, #0f6e8c, #d4af37, #8b1e1e);
    flex-shrink: 0;
    animation: spin 6s linear infinite;
}

.theme-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 2px;
}

.theme-menu.open {
    display: flex;
    animation: dropIn 0.18s ease;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #171717;
    text-align: left;
    cursor: pointer;
}

.theme-option:hover {
    background: #f2f2f0;
}

.theme-option.active {
    background: #ececea;
}

.theme-option .swatches {
    display: flex;
    flex-shrink: 0;
}

.theme-option .swatches span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    margin-left: -5px;
}

.theme-option .swatches span:first-child {
    margin-left: 0;
}

.theme-option .check {
    margin-left: auto;
    color: #171717;
    font-size: 13px;
    opacity: 0;
}

.theme-option.active .check {
    opacity: 1;
}

@media (max-width: 900px) {
    .theme-switcher {
        top: 9px;
        right: 60px;
    }

    .theme-toggle span.label {
        display: none;
    }

    .theme-toggle {
        padding: 8px;
    }
}

/* ============ APP SHELL ============ */

.app {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */

.sidebar {
    flex: 0 0 240px;
    height: 100vh;
    overflow-y: auto;
    background: var(--surface);
    color: var(--surface-text-dim);
    display: flex;
    flex-direction: column;
    padding: 28px 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand:hover img {
    transform: scale(1.1) rotate(-6deg);
}

.brand span {
    font-family: 'Yatra One', cursive;
    font-size: 18px;
    color: var(--surface-text);
    line-height: 1.2;
}

.side-nav {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.side-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--surface-text-dim);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.side-nav a:hover {
    color: var(--surface-text);
    transform: translateX(3px);
    background: rgba(255, 255, 255, 0.06);
}

.side-nav a.active {
    color: var(--highlight);
    background: rgba(255, 255, 255, 0.1);
}

.side-cta {
    margin-top: 24px;
}

.side-cta .btn {
    width: 100%;
    text-align: center;
    background: var(--highlight);
    color: var(--surface);
}

.side-cta .btn:hover {
    filter: brightness(1.05);
}

.side-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    color: var(--surface-text-dim);
}

.side-foot p {
    color: var(--surface-text-dim);
    font-size: 12px;
    margin: 3px 0;
}

.side-foot a:hover {
    color: var(--highlight);
}

/* MOBILE TOPBAR */

.topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    color: var(--surface-text);
}

.topbar .brand span {
    font-size: 17px;
}

.side-nav-overlay {
    display: none;
}

.nav-toggle {
    background: none;
    border: none;
    color: var(--surface-text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

/* MAIN VIEW */

.view {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(48px, 10vh, 96px) clamp(24px, 5vw, 64px) clamp(24px, 4vh, 56px);
}

.view-inner {
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.view h1 {
    font-size: clamp(28px, 3.4vw, 40px);
    color: var(--accent);
    margin-bottom: 12px;
}

.view > .view-inner > p.lede {
    font-size: 16px;
    max-width: 560px;
    margin-bottom: 8px;
}

/* SPLIT LAYOUTS */

.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

/* HERO BANNER (home) */

.hero-banner {
    aspect-ratio: 4 / 3;
    max-height: 46vh;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.hero-banner:hover img {
    transform: scale(1.06);
}

.mini-features {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.mini-features div {
    flex: 1;
}

.mini-features h3 {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 3px;
}

.mini-features p {
    font-size: 12px;
    margin: 0;
}

/* BUTTONS */

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--accent-contrast);
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
}

.btn.secondary:hover {
    background: var(--accent);
    color: var(--accent-contrast);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

/* TILES (why-us / differentiators) */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tile {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.25s ease;
}

.tile:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.tile h3 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 4px;
}

.tile p {
    font-size: 13px;
    margin: 0;
}

/* PHOTOS */

.page-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}

.page-photo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    transition: transform 0.4s ease;
}

.page-head:hover .page-photo {
    transform: scale(1.06) rotate(-1deg);
}

.photo-strip {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.photo-strip img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

.founder-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.founder-row img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease;
}

.founder-row:hover img {
    transform: scale(1.08);
}

.founder-row span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-soft);
}

/* TABS (menu page) */

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}

.tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: transparent;
    color: var(--text-soft);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
    border-color: var(--accent);
}

.tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: panelIn 0.35s ease;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.menu-tile {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--bg-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.25s ease;
}

.menu-tile:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.menu-tile .name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.menu-tile p {
    font-size: 12px;
    margin: 0;
}

/* WEEKLY MENU */

.subhead {
    font-size: 19px;
    color: var(--accent);
    margin-bottom: 2px;
}

.section-divider {
    margin: 28px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.day-tab.is-today::after {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--highlight);
    margin: 4px auto 0;
    animation: pulseDot 2s ease-in-out infinite;
}

.badge {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
}

.badge.non-veg {
    background: var(--accent-2);
}

.badge.signature {
    background: var(--highlight);
    color: var(--surface);
}

/* CONTACT */

.contact-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px 0;
}

.contact-tiles div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.25s ease;
}

.contact-tiles div:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.contact-tiles h3 {
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 2px;
}

.contact-tiles p {
    font-size: 13px;
    margin: 0;
}

.contact-tiles p a:hover {
    color: var(--accent);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 9px;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--text-soft);
}

.form-element {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    background: var(--input-bg);
    color: var(--text);
}

.form-element:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

textarea.form-element {
    min-height: 48px;
    resize: vertical;
}

.form-element.invalid {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent-2) 18%, transparent);
}

.form-notice {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(18px);
    background: var(--accent);
    color: var(--accent-contrast);
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1100;
}

.form-notice.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* MOBILE */

@media (max-width: 900px) {
    .app {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        display: flex;
    }

    .side-nav-overlay.open {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: var(--surface);
        padding: 10px 20px 20px;
        animation: dropIn 0.2s ease;
    }

    .side-nav-overlay a {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        color: var(--surface-text-dim);
    }

    .side-nav-overlay a.active {
        color: var(--highlight);
    }

    .view {
        height: auto;
        overflow-y: visible;
        justify-content: flex-start;
        padding: 32px 6vw 48px;
    }

    .split {
        grid-template-columns: 1fr;
    }

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

    .contact-tiles {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .menu-grid,
    .tile-grid {
        grid-template-columns: 1fr;
    }

    .btn-row {
        flex-direction: column;
    }

    .page-photo {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .page-head {
        gap: 12px;
    }

    .mini-features {
        flex-direction: column;
        gap: 12px;
    }

    .hero-banner {
        max-height: 32vh;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
