/**
 * Design tokens + base styles for the "bistro-francais" public website template.
 * Values taken 1:1 from the extracted "Le Flâneur" design.
 * This file is loaded standalone by the public template layout — it does not
 * depend on the Tailwind build and must remain self-contained.
 */

:root {
  --greige: #d7d1c6;
  --greige-light: #e6e2da;
  --greige-dark: #c3bbac;
  --slate: #7a8b99;
  --slate-light: #a3b0ba;
  --slate-dark: #5d6e7c;
  --slate-deep: #46545f;
  --anthracite: #66696c;
  --paper: #f6f1e5;
  --paper-warm: #efe8d8;
  --ink: #26241f;
  --white: #ffffff;

  --surface-page: var(--paper);
  --surface-card: var(--white);
  --surface-tinted: var(--greige-light);
  --surface-inverse: var(--ink);
  --text-heading: var(--ink);
  --text-body: #3c3a34;
  --text-muted: var(--anthracite);
  --text-on-dark: var(--paper);
  --text-accent: var(--slate-dark);
  --interactive: var(--slate-dark);
  --interactive-hover: var(--slate-deep);
  --border-hairline: rgba(38, 36, 31, 0.16);
  --border-strong: rgba(38, 36, 31, 0.4);
  --focus-ring: var(--slate);
  --status-ok: #6d7d5c;
  --status-warn: #a98649;
  --status-error: #a05a4d;

  --font-serif-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans-body: "Jost", "Century Gothic", "Futura", sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 19px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 64px;
  --text-5xl: 88px;

  --tracking-wordmark: 0.28em;
  --tracking-eyebrow: 0.24em;
  --tracking-caps: 0.14em;
  --tracking-body: 0.01em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 144px;

  --measure-prose: 62ch;
  --page-max: 1200px;
  --page-gutter: var(--space-6);

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-full: 999px;

  --rule-hairline: 1px solid var(--border-hairline);
  --rule-accent: 2px solid var(--greige-dark);

  --shadow-card: 0 1px 2px rgba(38, 36, 31, 0.06);
  --shadow-overlay: 0 16px 48px rgba(38, 36, 31, 0.22);
}

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

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans-body);
  letter-spacing: var(--tracking-body);
  font-size: var(--text-base);
  line-height: 1.6;
}

a {
  color: var(--text-accent);
  text-decoration: none;
}

a:hover {
  color: var(--interactive-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[x-cloak] {
  display: none !important;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif-display);
  color: var(--text-heading);
  margin: 0;
  font-weight: 400;
}

/* -------------------------------------------------------------------- */
/* Layout helpers                                                        */
/* -------------------------------------------------------------------- */

.page-container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

.page-container--narrow {
  max-width: 760px;
}

.page-container--prose {
  max-width: 860px;
}

.page-section {
  padding: var(--space-8) var(--page-gutter);
}

.page-section--lg {
  padding: var(--space-9) var(--page-gutter);
}

.page-section--card {
  background: var(--surface-card);
}

.page-section--tinted {
  background: var(--surface-tinted);
}

.page-section--inverse {
  background: var(--surface-inverse);
  color: var(--text-on-dark);
}

.page-section--center {
  text-align: center;
}

.page-section--hairline-top {
  border-top: var(--rule-hairline);
}

/* -------------------------------------------------------------------- */
/* Typography utilities                                                   */
/* -------------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-sans-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow--on-dark {
  color: var(--greige);
}

.wordmark {
  font-family: var(--font-serif-display);
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
  color: var(--text-heading);
  padding-left: 0.28em;
  white-space: nowrap;
}

.heading-display {
  font-family: var(--font-serif-display);
  font-weight: 400;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-heading);
  font-size: var(--text-3xl);
  line-height: 1.1;
}

.heading-display--hero {
  font-size: var(--text-5xl);
}

.heading-display--on-dark {
  color: var(--text-on-dark);
}

.heading-title {
  font-family: var(--font-serif-display);
  font-size: var(--text-xl);
  color: var(--text-heading);
}

.body-serif-italic {
  font-family: var(--font-serif-display);
  font-style: italic;
  color: var(--text-muted);
}

.text-caption {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.text-muted {
  color: var(--text-muted);
}

.measure-prose {
  max-width: var(--measure-prose);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: var(--space-6);
}

.section-heading--center {
  text-align: center;
}

.section-heading__rule {
  width: 48px;
  border-top: var(--rule-accent);
  margin-top: var(--space-4);
}

.section-heading--center .section-heading__rule {
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------------- */
/* Nav                                                                    */
/* -------------------------------------------------------------------- */

.site-header {
  background: var(--surface-page);
  border-bottom: var(--rule-hairline);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
  position: relative;
}

.site-header__brand {
  font-family: var(--font-serif-display);
  font-size: 20px;
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
  color: var(--text-heading);
}

.site-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-sans-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--interactive-hover);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--text-heading);
  border-bottom-color: var(--text-heading);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-heading);
}

/* -------------------------------------------------------------------- */
/* Footer                                                                 */
/* -------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.site-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-8) var(--page-gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-7);
}

.site-footer__brand {
  font-family: var(--font-serif-display);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-wordmark);
  text-transform: uppercase;
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: rgba(246, 241, 229, 0.65);
  max-width: 38ch;
  margin-top: var(--space-3);
}

.site-footer__col {
  font-size: var(--text-sm);
  color: rgba(246, 241, 229, 0.65);
  line-height: 2;
}

.site-footer__col-title {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--greige);
  margin-bottom: var(--space-2);
}

.site-footer__col a {
  color: var(--paper);
}

.site-footer__bottom {
  border-top: 1px solid rgba(246, 241, 229, 0.15);
}

.site-footer__bottom-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 14px var(--page-gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: rgba(246, 241, 229, 0.45);
}

.site-footer__bottom-inner a {
  color: rgba(246, 241, 229, 0.6);
}

.site-footer__legal-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------------------- */
/* Buttons                                                                */
/* -------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  text-decoration: none;
  line-height: 1;
}

.btn:hover {
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--interactive);
  color: var(--paper);
  border-color: var(--interactive);
}

.btn--primary:hover {
  background: var(--interactive-hover);
  border-color: var(--interactive-hover);
  color: var(--paper);
}

.btn--secondary {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  background: var(--surface-tinted);
  color: var(--text-heading);
}

.btn--ghost {
  background: transparent;
  color: var(--text-accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
  text-transform: none;
  letter-spacing: var(--tracking-body);
  font-size: var(--text-sm);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--interactive-hover);
}

.btn--default {
  padding: 13px 26px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 16px 34px;
  font-size: var(--text-sm);
}

.btn--sm {
  padding: 8px 18px;
  font-size: var(--text-xs);
}

/* -------------------------------------------------------------------- */
/* Card                                                                   */
/* -------------------------------------------------------------------- */

.card {
  background: var(--surface-card);
  border: var(--rule-hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.card--tinted {
  background: var(--surface-tinted);
  border-color: transparent;
}

/* -------------------------------------------------------------------- */
/* Badge                                                                  */
/* -------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-tinted);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.badge--ok {
  background: rgba(109, 125, 92, 0.14);
  color: var(--status-ok);
}

.badge--warn {
  background: rgba(169, 134, 73, 0.14);
  color: var(--status-warn);
}

.badge--error {
  background: rgba(160, 90, 77, 0.14);
  color: var(--status-error);
}

/* -------------------------------------------------------------------- */
/* Tabs                                                                   */
/* -------------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  border-bottom: var(--rule-hairline);
  padding-bottom: var(--space-3);
}

.tabs--center {
  justify-content: center;
}

.tabs__button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.tabs__button:hover {
  color: var(--interactive-hover);
}

.tabs__button.is-active {
  color: var(--text-heading);
  border-bottom-color: var(--text-heading);
}

/* -------------------------------------------------------------------- */
/* Forms                                                                  */
/* -------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__control {
  font-family: var(--font-sans-body);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--surface-card);
  border: var(--rule-hairline);
  border-radius: var(--radius-xs);
  padding: 11px 14px;
}

.field__control:focus-visible,
.field__control:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px rgba(122, 139, 153, 0.35);
}

.field__options {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
  padding-top: var(--space-1);
}

.field__option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-body);
}

.field--checkbox {
  flex-direction: row;
  align-items: center;
}

.field--checkbox .field__label {
  text-transform: none;
  letter-spacing: var(--tracking-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--text-body);
}

/* -------------------------------------------------------------------- */
/* Dialog                                                                 */
/* -------------------------------------------------------------------- */

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(38, 36, 31, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  z-index: 50;
}

.dialog {
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-overlay);
  max-width: 480px;
  width: 100%;
  padding: var(--space-6);
}

.dialog__eyebrow {
  margin-bottom: var(--space-2);
}

.dialog__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.dialog__body {
  margin-bottom: var(--space-5);
}

.dialog__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* -------------------------------------------------------------------- */
/* Menu page dotted-line rows                                            */
/* -------------------------------------------------------------------- */

.menu-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.menu-row__leader {
  flex: 1;
  border-bottom: 1px dotted var(--border-hairline);
  min-width: 24px;
}

.menu-row__price {
  font-family: var(--font-sans-body);
  font-weight: 500;
  font-size: var(--text-lg);
  color: var(--text-heading);
  white-space: nowrap;
}

.menu-row__name {
  font-family: var(--font-serif-display);
  font-size: var(--text-xl);
  color: var(--text-heading);
}

.menu-row__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

/* -------------------------------------------------------------------- */
/* Gallery rows (rooms page)                                             */
/* -------------------------------------------------------------------- */

.gallery-row {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 760px) {
  .gallery-row {
    grid-template-columns: 1.4fr 1fr;
  }

  .gallery-row--reverse {
    grid-template-columns: 1fr 1.4fr;
  }

  .gallery-row--reverse .gallery-row__image {
    order: 2;
  }
}

/* -------------------------------------------------------------------- */
/* Event / rooms grids                                                   */
/* -------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(3, 1fr);
}

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

.two-col {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

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

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

/* -------------------------------------------------------------------- */
/* Mobile (<=640px)                                                       */
/* -------------------------------------------------------------------- */

@media (max-width: 640px) {
  :root {
    --text-5xl: 44px;
    --text-4xl: 32px;
    --text-3xl: 26px;
    --text-2xl: 22px;
    --space-9: 56px;
    --space-8: 40px;
    --space-7: 28px;
    --page-gutter: var(--space-4);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-page);
    border-bottom: var(--rule-hairline);
    padding: var(--space-4) var(--page-gutter);
    z-index: 30;
  }
}
