* {
  box-sizing: border-box;
}

:root {
  --green-950: #142414;
  --green-900: #183318;
  --green-800: #1e5f2f;
  --green-700: #2d6b3d;
  --green-100: #e8f7ea;

  --gold: #e8ca72;
  --gold-strong: #d6a83f;
  --gold-soft: #f7edc9;

  --ink: #1f2a1f;
  --muted: #667066;
  --line: #dfe8dc;
  --danger: #8a0000;
  --success: #075915;
  --bg: #f5f7f4;
  --card: #ffffff;

  --shadow-soft: 0 10px 28px rgba(0, 0, 0, .08);
  --shadow-hero: 0 14px 34px rgba(0, 0, 0, .09);
  --radius-card: 20px;
  --radius-hero: 26px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

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

a {
  color: var(--green-800);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

/* Demo system notice */
.demo-banner {
  background: linear-gradient(90deg, #ffb13d, var(--gold));
  color: #201600;
  text-align: center;
  padding: 12px 18px;
  font-weight: 900;
  letter-spacing: .03em;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

/* Header */
.site-header {
  background: linear-gradient(180deg, var(--green-950), var(--green-900));
  border-bottom: 5px solid var(--gold);
}

.header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.brand-logo-large {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  object-fit: contain;
  background: var(--gold);
  padding: 6px;
}

.brand-title {
  margin-top: 12px;
  font-size: 2.3rem;
  line-height: 1.05;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
}

.powered-line {
  color: #f4e4a9;
  font-weight: 700;
  text-align: center;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.site-nav a {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--gold);
  color: var(--green-950);
  outline: none;
}

/* Layout */
.page-wrap {
  padding: 30px 20px 50px;
}

.hero,
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff, var(--gold-soft));
}

.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 26px;
  object-fit: contain;
  background: var(--gold);
  padding: 6px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1;
  color: var(--green-950);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */
.button-row,
.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn,
button.btn,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--green-800);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(20, 36, 20, .12);
}

.btn:hover,
.btn:focus-visible,
button.btn:hover,
button.btn:focus-visible {
  filter: brightness(.96);
  text-decoration: none;
  outline: none;
}

.btn.secondary {
  background: #555555;
}

.btn.gold {
  background: var(--gold);
  color: var(--green-950);
}

.btn.small {
  padding: 10px 14px;
  font-size: .92rem;
}

/* Cards and grids */
.grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  padding: 0;
}

.product-card-body {
  padding: 22px;
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--gold-soft);
}

.product-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
}

.product-placeholder img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-950);
  font-weight: 700;
}

/* Reservation spots */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 10px;
  max-width: 840px;
}

.spot {
  padding: 13px 0;
  text-align: center;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-950);
  font-weight: 800;
  border: 1px solid #cbd5c0;
}

.spot.taken {
  background: #ffd7d7;
  color: var(--danger);
}

.selectable-spot {
  position: relative;
  cursor: pointer;
}

.selectable-spot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selectable-spot:has(input:checked) {
  background: var(--gold);
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 3px rgba(232, 202, 114, .35);
}

.reserve-toolbar {
  margin-top: 22px;
  padding: 18px;
  background: #f8fbf7;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Alerts */
.alert {
  padding: 14px;
  border-radius: 12px;
  margin: 18px 0;
  font-weight: 700;
}

.alert.success {
  background: #e5ffe8;
  color: var(--success);
  border: 1px solid #bde8c5;
}

.alert.error {
  background: #ffe5e5;
  color: var(--danger);
  border: 1px solid #f1bcbc;
}

.alert.warning {
  background: #fff6d8;
  color: #5f4300;
  border: 1px solid #ead27c;
}

/* Homepage */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 380px;
  gap: 26px;
  margin: 24px 0 34px;
}

.home-hero-content,
.home-hero-card {
  background: linear-gradient(135deg, #ffffff, var(--gold-soft));
  border-radius: var(--radius-hero);
  padding: 32px;
  box-shadow: var(--shadow-hero);
}

.home-hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  margin: 10px 0 14px;
  color: var(--green-950);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-950);
  font-size: .88rem;
  font-weight: 900;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 32px 0 16px;
}

.section-header h2 {
  margin: 0;
  color: var(--green-950);
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0;
}

.info-item {
  background: var(--card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.info-item h3 {
  margin-top: 0;
  color: var(--green-950);
}

/* Forms */
label {
  font-weight: 800;
  color: var(--green-950);
}

input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid #cbd6ce;
  border-radius: 12px;
  background: #ffffff;
  font: inherit;
  color: var(--ink);
}

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

/* Tables */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green-950);
  font-size: .9rem;
  background: #f6f8f6;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 32px 20px;
  background: #eef3ed;
  border-top: 1px solid var(--line);
}

.footer-logo {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  object-fit: contain;
  background: var(--gold);
  padding: 3px;
}

.small,
.small-muted {
  color: var(--muted);
  font-size: .9rem;
}

/* Responsive */
@media (max-width: 880px) {
  .home-hero,
  .info-band {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 16px;
  }

  .page-wrap {
    padding: 22px 14px 42px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    margin: 0 auto;
  }

  .brand-logo-large {
    width: 126px;
    height: 126px;
  }

  .brand-title {
    font-size: 1.9rem;
  }

  .home-hero-content,
  .home-hero-card,
  .hero,
  .card {
    padding: 22px;
  }

  .reserve-toolbar {
    display: block;
  }

  .reserve-toolbar .btn {
    width: 100%;
    margin-top: 12px;
  }
}
