﻿/* ==========================================================================
   ANDO — Japanese editorial ink print
   Palette: burgundy / paper / ink
   ========================================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../../fonts/CormorantGaramond/CormorantGaramond-latin.woff2') format('woff2'),
         url('../../fonts/CormorantGaramond/CormorantGaramond-latin-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../../fonts/CormorantGaramond/CormorantGaramond-italic-latin.woff2') format('woff2'),
         url('../../fonts/CormorantGaramond/CormorantGaramond-italic-latin-ext.woff2') format('woff2');
    font-weight: 400 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --ando-burgundy: #80002F;
    --ando-burgundy-deep: #56001F;
    --ando-paper: #F1EEE8;
    --ando-paper-alt: #E5E1D9;
    --ando-ink: #191919;
    --ando-ink-muted: rgba(25, 25, 25, 0.62);
    --ando-ink-soft: rgba(25, 25, 25, 0.38);
    --ando-border: rgba(25, 25, 25, 0.14);
    --ando-surface: #FFFFFF;
    --ando-surface-soft: rgba(255, 255, 255, 0.72);

    --ao-primary: var(--ando-burgundy);
    --ao-primary-deep: var(--ando-burgundy-deep);
    --ao-primary-light: #9A1A42;
    --ao-bg: var(--ando-paper);
    --ao-bg-alt: var(--ando-paper-alt);
    --ao-ink: var(--ando-ink);
    --ao-ink-muted: var(--ando-ink-muted);
    --ao-border: var(--ando-border);
    --ao-surface: var(--ando-surface);
    --ao-surface-hover: rgba(128, 0, 47, 0.06);

    --ao-text-headings: var(--ao-ink);
    --ao-text-main: var(--ao-ink);
    --ao-text-muted: var(--ao-ink-muted);
    --ao-text-secondary: var(--ao-ink-muted);

    --ao-danger: #8B1E1E;
    --ao-success: #2F5D3A;

    --ao-font-sans: 'Vazirmatn', Tahoma, sans-serif;
    --ao-font-en: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --ao-font-display: var(--ao-font-en);

    --ao-radius-sm: 10px;
    --ao-radius-md: 16px;
    --ao-radius-lg: 24px;
    --ao-radius-xl: 32px;
    --ao-radius-pill: 999px;

    --ao-shadow-sm: 0 4px 16px rgba(25, 25, 25, 0.06);
    --ao-shadow-md: 0 12px 36px rgba(25, 25, 25, 0.1);

    --ao-safe-top: env(safe-area-inset-top, 0px);
    --ao-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ao-header-h: 58px;
    --ao-dock-h: 68px;
    --ao-content-max: 980px;

    --ao-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ao-transition: 220ms var(--ao-ease);

    --ao-paper-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    --ao-seigaiha: url('../../images/japanese/patterns/seigaiha.svg');
    --ao-seigaiha-burgundy: url('../../images/japanese/patterns/seigaiha-burgundy.svg');
}

*, *::before, *::after { box-sizing: border-box; }

html {
    font-family: var(--ao-font-sans);
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.ao-body {
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    color: var(--ao-ink);
    background-color: var(--ao-bg);
    background-image: var(--ao-paper-texture), var(--ao-seigaiha);
    background-size: 160px 160px, 120px 60px;
    background-attachment: fixed;
    min-height: 100dvh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

body.ao-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 85% 8%, rgba(128, 0, 47, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(241, 238, 232, 0.2), transparent 30%);
}

/* Call-waiter FAB — clear bottom dock; keep clear of hero CTAs */
body.ao-body .cwb-wrapper {
    bottom: calc(var(--ao-dock-h) + 14px + var(--ao-safe-bottom)) !important;
    z-index: 45 !important;
}

body.ao-body .cwb-fab {
    max-width: 118px;
}

@media (min-width: 900px) {
    body.ao-body .cwb-wrapper {
        bottom: 28px !important;
    }
}

@media (max-width: 640px) {
    .ao-container {
        width: min(100% - 24px, var(--ao-content-max));
    }

    body.ao-body {
        background-attachment: scroll;
    }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ao-primary); text-decoration: none; transition: opacity var(--ao-transition); }
a:hover { opacity: 0.84; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--ao-font-sans);
    color: var(--ao-text-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
    line-height: 1.25;
}

/* English / Latin typography */
.ao-latin,
.ao-hero__latin,
.ao-menu-hero__latin,
.ao-footer__latin,
.ao-loader__latin,
.ao-kicker[dir="ltr"],
.ao-reservation-kicker,
[lang="en"],
[lang="ja"],
[lang="fr"],
[dir="ltr"]:not(input):not(textarea):not(a[href^="tel"]) {
    font-family: var(--ao-font-en);
    letter-spacing: 0.04em;
}

.ao-hero__latin,
.ao-menu-hero__latin,
.ao-footer__latin,
.ao-loader__latin {
    font-style: italic;
    font-weight: 500;
}

.ao-main {
    position: relative;
    z-index: 1;
    min-height: 50vh;
    padding-bottom: calc(var(--ao-dock-h) + var(--ao-safe-bottom) + 24px);
}

.ao-container {
    width: min(100% - 32px, var(--ao-content-max));
    margin-inline: auto;
}

.ao-kicker,
.ao-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ao-primary);
    background: rgba(128, 0, 47, 0.08);
    padding: 5px 12px;
    border-radius: 999px;
}

.ao-pill--invert {
    background: var(--ao-ink);
    color: var(--ao-bg);
}

.ao-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform var(--ao-transition), background var(--ao-transition), color var(--ao-transition);
}

.ao-btn:active { transform: scale(0.97); }

.ao-btn--solid {
    background: var(--ao-primary);
    color: #fff;
}

.ao-btn--solid:hover { background: var(--ao-primary-deep); color: #fff; opacity: 1; }

.ao-btn--ghost {
    background: transparent;
    color: var(--ao-ink);
    border: 1px solid var(--ao-border);
}

.ao-btn--ghost:hover {
    background: var(--ao-surface-hover);
    color: var(--ao-ink);
    opacity: 1;
}

.ao-section-head {
    margin-bottom: 22px;
}

.ao-section-head h2 {
    margin: 10px 0 6px;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.ao-section-head p {
    margin: 0;
    color: var(--ao-text-muted);
    font-size: 0.92rem;
}

.ao-separator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0;
    min-height: 36px;
}

.ao-separator img {
    width: min(240px, 70vw);
    height: auto;
    opacity: 0.85;
}

.ao-separator__brush {
    width: min(220px, 68vw) !important;
    opacity: 0.7 !important;
}

.ao-separator__sun {
    width: 28px !important;
    height: 28px;
    opacity: 0.75 !important;
    flex-shrink: 0;
}

.ao-separator__branch {
    width: min(120px, 36vw) !important;
    opacity: 0.55 !important;
    mix-blend-mode: multiply;
}

.ao-separator__waves {
    width: min(200px, 60vw);
    height: 28px;
    background-image: var(--ao-seigaiha-burgundy);
    background-size: 80px 40px;
    background-repeat: repeat-x;
    opacity: 0.85;
}

.ao-empty-state {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
}

.ao-empty-state--inline {
    grid-column: 1 / -1;
    padding: 28px 0;
}

.ao-empty-state--chapter {
    padding: 20px 0;
}

.ao-empty-state__bowl {
    opacity: 0.88;
    mix-blend-mode: multiply;
}

.ao-empty-state__branch {
    position: absolute;
    inset-inline-start: calc(50% - 70px);
    top: 4px;
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.ao-empty-state__sun {
    position: absolute;
    inset-inline-end: calc(50% - 58px);
    top: 0;
    opacity: 0.55;
    pointer-events: none;
}

.ao-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--ao-bg);
    transition: opacity 0.45s var(--ao-ease), visibility 0.45s;
}

.ao-loader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ao-loader__crest {
    width: 64px;
    height: 64px;
    animation: aoPulse 1.6s ease-in-out infinite;
}

.ao-loader__title {
    margin: 0;
    font-size: 1.25rem;
}

.ao-loader__latin {
    margin: 0;
    font-family: var(--ao-font-display);
    font-style: italic;
    color: var(--ao-primary);
    letter-spacing: 0.04em;
}

.ao-loader__bar {
    width: 120px;
    height: 3px;
    border-radius: 999px;
    background: var(--ao-bg-alt);
    overflow: hidden;
}

.ao-loader__bar-fill {
    width: 40%;
    height: 100%;
    background: var(--ao-primary);
    animation: aoLoad 1.1s ease-in-out infinite;
}

@keyframes aoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes aoLoad {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}

.ao-input,
textarea.ao-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--ao-radius-sm);
    border: 1px solid var(--ao-border);
    background: var(--ao-surface);
    color: var(--ao-ink);
    font-family: inherit;
    font-size: 1rem;
}

.ao-input:focus {
    outline: none;
    border-color: var(--ao-primary);
    box-shadow: 0 0 0 3px rgba(128, 0, 47, 0.12);
}
