:root {
  --ink: #1b2328;
  --muted: #65727a;
  --line: #dfe6e1;
  --paper: #fbfcf8;
  --soft: #eef4ed;
  --teal: #0f766e;
  --coral: #d44d2e;
  --gold: #b7892d;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

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

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 18px;
  color: #fff;
  background: var(--coral);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover,
.button:hover {
  filter: brightness(0.95);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad5ce;
  border-radius: var(--radius);
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: #39454d;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #f5f8f3;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 950;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 800;
}

.notice.success {
  color: #194f35;
  background: #e5f6e6;
}

.notice.error {
  color: #852b1f;
  background: #ffe5df;
}

.muted,
.small-copy {
  color: var(--muted);
}

.small-copy {
  font-size: 0.9rem;
}

.password-page {
  min-height: 100vh;
  background: var(--paper);
}

.password-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.password-form {
  display: grid;
  width: min(100%, 340px);
  gap: 12px;
}

.password-form label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.password-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.password-form button {
  border: 0;
  border-radius: var(--radius);
  padding: 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.password-form button:hover {
  background: var(--teal);
}

.password-error {
  margin: 0;
  color: #852b1f;
  font-size: 0.9rem;
  font-weight: 800;
}

.top-nav,
.restaurant-nav,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(251, 252, 248, 0.92);
  backdrop-filter: blur(14px);
}

.top-nav nav,
.restaurant-nav nav,
.admin-header nav,
.social-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #2f3d44;
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: #fff;
}

.auth-page {
  background: #f4f7f1;
}

.auth-nav {
  border-color: var(--line);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(42px, 7vw, 86px) clamp(20px, 6vw, 80px);
}

.auth-copy {
  max-width: 680px;
}

.auth-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.auth-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.auth-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  box-shadow: 0 18px 48px rgba(43, 56, 58, 0.08);
}

.auth-panel h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form button {
  width: 100%;
}

.auth-panel a {
  color: var(--teal);
  font-weight: 900;
}

.handle-summary {
  display: grid;
  gap: 3px;
  border: 1px solid #b9d8d4;
  border-radius: var(--radius);
  padding: 12px 13px;
  background: #eef8f6;
}

.handle-summary span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.handle-summary strong {
  color: #0d4f49;
  font-size: 1.15rem;
}

.marketing-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 82vh;
  padding: 120px clamp(20px, 6vw, 80px) 84px;
  overflow: hidden;
  color: #fff;
  background: #1e2528;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background: rgba(12, 18, 21, 0.58);
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.hero-copy .eyebrow {
  color: #a4efe3;
}

.hero-copy h1,
.restaurant-hero-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.restaurant-hero-copy p:not(.eyebrow) {
  max-width: 650px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.signup-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 28px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.93);
}

.handle-field {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.handle-field:focus-within {
  outline: 2px solid rgba(15, 118, 110, 0.38);
  outline-offset: 1px;
}

.handle-prefix {
  flex: 0 0 auto;
  padding-left: 13px;
  color: #39454d;
  font-weight: 900;
  white-space: nowrap;
}

.signup-strip input {
  border-color: transparent;
  background: #fff;
}

.handle-field input {
  min-width: 90px;
  padding-left: 2px;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat-band div {
  padding: 28px clamp(20px, 5vw, 54px);
  background: #fff;
}

.stat-band strong {
  display: block;
  font-size: 1.7rem;
}

.stat-band span {
  color: var(--muted);
  font-weight: 800;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

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

.section-heading h2,
.restaurant-intro h2,
.panel-heading h2,
.contact-section h2,
.admin-title-row h1,
.admin-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

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

.feature-card,
.price-card,
.admin-panel,
.restaurant-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature-card,
.price-card {
  padding: 24px;
}

.feature-mark {
  color: var(--coral);
  font-weight: 950;
}

.feature-card h3,
.price-card h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.price {
  margin: 12px 0;
  color: var(--teal);
  font-size: 2rem;
  font-weight: 950;
}

.price-card.highlight {
  border-color: #f2b3a4;
  box-shadow: 0 16px 40px rgba(43, 56, 58, 0.1);
}

.restaurant-shell {
  --brand: #122620;
  --accent: #d44d2e;
  background: #f7faf5;
}

.restaurant-nav .brand {
  color: var(--brand);
}

.restaurant-hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  padding: 110px clamp(20px, 6vw, 80px) 70px;
  color: #fff;
  overflow: hidden;
  background: var(--brand);
}

.restaurant-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.restaurant-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.restaurant-hero-copy .eyebrow {
  color: #d8fff8;
}

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

.button.primary,
.booking-panel button,
.admin-panel button,
.signup-strip button,
.auth-form button {
  background: var(--accent, var(--coral));
}

.button.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
}

.restaurant-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 80px);
  background: #fff;
}

.restaurant-intro p:last-child {
  margin: 0;
  font-size: 1.15rem;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 18px;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 6vw, 80px);
  align-items: start;
}

.restaurant-panel,
.admin-panel {
  padding: clamp(20px, 3vw, 32px);
}

.booking-panel {
  position: sticky;
  top: 90px;
}

.panel-heading {
  margin-bottom: 22px;
}

.menu-sections {
  display: grid;
  gap: 22px;
}

.menu-section h3 {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 1.3rem;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

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

.menu-item span {
  color: var(--accent);
  font-weight: 950;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.link-list a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  font-weight: 900;
}

.image-menu-grid,
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.image-menu-grid img,
.gallery-strip img {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  object-fit: cover;
}

.image-menu-grid figure {
  margin: 0;
}

.image-menu-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.stack-form {
  display: grid;
  gap: 14px;
}

.gallery-strip {
  padding: 0 clamp(20px, 6vw, 80px) clamp(28px, 5vw, 64px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 80px);
  background: #fff;
}

.contact-section iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
}

.hours-list {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  color: var(--muted);
  font-weight: 800;
}

.admin-page {
  background: #f4f7f1;
}

.admin-header {
  border-color: var(--line);
}

.admin-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  padding: 26px clamp(18px, 4vw, 54px) 56px;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  align-self: start;
}

.admin-sidebar a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  color: #344249;
  font-weight: 900;
}

.admin-content {
  display: grid;
  gap: 18px;
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
}

.metric-row div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fff;
}

.metric-row strong {
  display: block;
  font-size: 1.6rem;
}

.metric-row span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

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

.form-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.form-grid .wide,
.form-grid button {
  grid-column: 1 / -1;
}

.form-grid.compact button {
  grid-column: auto;
}

.table-wrap {
  overflow-x: auto;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 8px;
}

.inline-form button {
  min-height: 40px;
  padding: 0 12px;
}

.empty-state {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 100vh;
  padding: 8vw;
}

.empty-state h1 {
  margin: 20px 0 6px;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 1;
}

.layout-classic .restaurant-hero {
  min-height: 64vh;
}

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

.layout-classic .booking-panel {
  position: static;
}

.layout-minimal .restaurant-hero {
  min-height: 56vh;
}

.layout-minimal .restaurant-hero-image {
  opacity: 0.36;
}

.layout-minimal .restaurant-intro,
.layout-minimal .contact-section {
  background: #f7faf5;
}

@media (max-width: 980px) {
  .feature-grid,
  .pricing-grid,
  .restaurant-grid,
  .contact-section,
  .restaurant-intro,
  .auth-shell,
  .admin-layout,
  .admin-title-row {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .pricing-grid {
    display: grid;
  }

  .booking-panel,
  .admin-sidebar {
    position: static;
  }

  .admin-title-row {
    display: grid;
  }

  .admin-sidebar {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .top-nav,
  .restaurant-nav,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (max-width: 720px) {
  .signup-strip,
  .stat-band,
  .image-menu-grid,
  .gallery-strip,
  .form-grid,
  .form-grid.compact,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .restaurant-hero-copy h1 {
    font-size: 4rem;
  }

  .marketing-hero,
  .restaurant-hero {
    min-height: 72vh;
  }

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

  .form-grid.compact button {
    grid-column: 1 / -1;
  }

  .auth-copy h1 {
    font-size: 3rem;
  }

  th,
  td {
    min-width: 140px;
  }
}
