:root {
  color-scheme: light;
  --ink: #10243a;
  --text: #33465a;
  --muted: #6f7f8d;
  --blue: #075d96;
  --blue-dark: #043f68;
  --blue-soft: #e7f1f7;
  --cream: #fff9ed;
  --paper: #f8efe0;
  --white: #ffffff;
  --line: #eadcc6;
  --gold: #b9823b;
  --green: #327a53;
  --shadow: 0 20px 60px rgba(16, 36, 58, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(255, 249, 237, 0.92);
  border-bottom: 1px solid rgba(234, 220, 198, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue-dark);
  background: var(--white);
  font-weight: 900;
}

.header-cart strong {
  min-width: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--blue);
  font-size: 13px;
}

.hero {
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  align-items: center;
  padding: 70px max(22px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(16, 36, 58, 0.72), rgba(16, 36, 58, 0.24) 54%, rgba(16, 36, 58, 0.04)),
    url("./assets/cafe-table.jpg");
  background-position: center;
  background-size: cover;
}

.subpage-hero {
  min-height: 620px;
}

.hero-copy {
  max-width: 690px;
  color: var(--white);
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 11vw, 126px);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 22px;
}

.lede,
.section-copy {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--blue-dark);
  box-shadow: 0 10px 30px rgba(4, 63, 104, 0.24);
}

.button.secondary {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.status-band {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(22px, calc((100vw - 1180px) / 2));
  color: var(--text);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.status-band > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.status-dot.live {
  background: var(--green);
}

.section {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.5;
}

.intro-grid,
.account-grid,
.admin-grid,
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.intro-grid article,
.panel,
.cart-panel,
.menu-panel,
.category-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro-grid article {
  min-height: 205px;
  padding: 24px;
}

.intro-grid h2 {
  font-family: inherit;
  font-size: 24px;
  line-height: 1.12;
}

.intro-grid p:last-child,
.panel p {
  color: var(--text);
  line-height: 1.5;
}

.order-layout {
  width: min(1340px, calc(100% - 44px));
}

.menu-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.category-panel,
.menu-panel,
.cart-panel,
.panel {
  padding: 20px;
}

.category-panel,
.cart-panel {
  position: sticky;
  top: 86px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.category-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.category-list button,
.segmented button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--white);
  font-weight: 900;
  text-align: left;
}

.category-list button.active,
.segmented button.active {
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-color: #bdd8e8;
}

.menu-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px);
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.menu-toolbar p {
  margin: 7px 0 0;
  color: var(--muted);
}

.menu-items {
  display: grid;
  gap: 12px;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-item h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
}

.menu-item p {
  margin: 7px 0 0;
  color: var(--text);
  line-height: 1.42;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 900;
}

.item-action {
  display: grid;
  gap: 10px;
  justify-items: end;
  align-content: start;
}

.price {
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 950;
}

.small-add,
.quantity button,
.text-button {
  border: 0;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 9px 11px;
  font-weight: 950;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 96px;
  margin: 18px 0;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.cart-line span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals dt {
  color: var(--muted);
}

.totals dd {
  margin: 0;
  font-weight: 950;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--text);
  font-weight: 800;
}

.form-message.error {
  color: #9b2c2c;
}

.form-message.success {
  color: var(--green);
}

.account-grid {
  grid-template-columns: minmax(280px, 410px) 1fr;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

#auth-form,
#catering-form,
#event-form {
  display: grid;
  gap: 14px;
}

.reward-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-button {
  background: transparent;
  padding: 6px 0;
}

.points-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 12px;
}

.points-row strong {
  color: var(--blue-dark);
  font-size: 54px;
  line-height: 1;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--blue-soft);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 220ms ease;
}

.order-history {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.history-heading,
.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-heading span {
  color: var(--blue-dark);
  font-weight: 950;
}

.order-items {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.order-items li {
  color: var(--text);
  font-size: 13px;
}

.order-items strong {
  color: var(--ink);
  white-space: nowrap;
}

.history-line small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 800;
}

.history-line,
.admin-line,
.location-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.admin-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, auto);
  align-items: center;
  gap: 12px;
}

.history-line strong,
.admin-line strong,
.location-card strong {
  display: block;
}

.history-line span,
.admin-line span,
.location-card span {
  color: var(--muted);
  line-height: 1.45;
}

.catering-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

#catering-form,
#event-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-layout {
  margin-bottom: 72px;
}

.span-two {
  grid-column: 1 / -1;
}

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

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list h2 {
  font-family: inherit;
  font-size: 24px;
  line-height: 1.15;
}

.admin-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

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

.admin-form h3 {
  grid-column: 1 / -1;
}

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

.checkbox-label input {
  width: auto;
}

.hidden {
  display: none !important;
}

footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  align-items: start;
  gap: 18px;
  padding: 28px max(22px, calc((100vw - 1180px) / 2));
  color: var(--text);
  background: var(--white);
  border-top: 1px solid var(--line);
}

footer strong,
footer span {
  display: block;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.newsletter-form .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 1060px) {
  .menu-shell {
    grid-template-columns: 210px 1fr;
  }

  .cart-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .catering-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .hero {
    min-height: 680px;
    background:
      linear-gradient(180deg, rgba(16, 36, 58, 0.72), rgba(16, 36, 58, 0.22)),
      url("./assets/cafe-table.jpg");
    background-position: 42% center;
  }

  .status-band,
  footer {
    display: grid;
  }

  .section,
  .order-layout {
    width: min(100% - 28px, 680px);
    padding: 48px 0;
  }

  .intro-grid,
  .account-grid,
  .admin-grid,
  .admin-form,
    .locations-grid,
    .menu-shell,
    #catering-form,
    #event-form,
    footer,
    .newsletter-form {
    grid-template-columns: 1fr;
  }

  .category-panel {
    position: static;
  }

  .menu-toolbar {
    grid-template-columns: 1fr;
  }

  .menu-item {
    grid-template-columns: 1fr;
  }

  .item-action {
    grid-template-columns: auto auto;
    justify-items: start;
    align-items: center;
  }
}
