/* Shared styles for static SEO service pages (public/hotel.html, restaurant.html,
   banquet.html, faq.html). Plain hand-written CSS — these pages are served as-is by
   Netlify and never pass through the Vite/Tailwind/PostCSS pipeline, so
   Tailwind utility classes and the tailwind.config.js token scale aren't
   available here. Values below are copied from tailwind.config.js /
   DESIGN.md by hand; keep in sync manually if the brand palette changes. */

:root {
  --brand: #ec6e05;
  --brand-dark: #c75100;
  --brand-50: #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --ink-900: #1f2937;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --border: #e5e7eb;
  --footer-bg: #111827;
  --footer-bg-dark: #030712;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--ink-700);
  background: #ffffff;
  line-height: 1.55;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  color: var(--ink-900);
  margin: 0 0 0.5em;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: 85rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header — mirrors src/pages/landing/component/LandingNav.tsx + SubNav.tsx
   (white bar, fixed height, logo left, text-link nav, Register/Login on the
   right — same spacing, colors, and hover states as the SPA header, so
   these static pages don't read as a visually separate product). Full
   scroll-shadow and the hamburger/RightMenu behavior aren't reproduced —
   these pages carry no JS framework, so below the "tb" breakpoint the
   secondary nav links are dropped in favor of just logo + Register/Login,
   which stay reachable at every width. See ticket Decisions & Notes. */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  height: 70px;
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark img {
  height: 32px;
  width: auto;
}
.brand-word {
  height: 32px;
  overflow: visible;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: auto;
  margin-left: 2rem;
  font-family: "Poppins", sans-serif;
}
.nav-links a,
.nav-actions a {
  padding: 0.5rem 0.6rem;
  border-radius: 0.375rem;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.nav-links a:hover,
.nav-actions a:hover {
  background: var(--brand-100);
}
.nav-links a[aria-current="page"],
.nav-actions a[aria-current="page"] {
  color: var(--brand);
}
.nav-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Product dropdown — pure CSS (hover / keyboard focus), these pages ship no
   framework. Mirrors src/pages/landing/component/SubNav.tsx. */
.nav-drop {
  position: relative;
}
.nav-drop-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.6rem;
  border: 0;
  border-radius: 0.375rem;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nav-drop-btn[data-active="true"] {
  color: var(--brand);
}
.nav-drop-btn .chev,
.mobile-menu summary svg,
.nd-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-drop-btn .chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.nav-drop:hover .nav-drop-btn,
.nav-drop:focus-within .nav-drop-btn {
  background: var(--brand-100);
}
.nav-drop:hover .chev,
.nav-drop:focus-within .chev {
  transform: rotate(180deg);
}
.nav-drop-panel {
  position: absolute;
  left: 0;
  top: 100%;
  padding-top: 0.5rem;
  width: 18rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 50;
}
.nav-drop:hover .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-drop-panel > a,
.mobile-panel > a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 0.6rem;
  text-decoration: none;
  white-space: normal;
  transition: background-color 0.15s ease;
}
/* The visible card; the panel's top padding is a hover bridge from the button */
.nav-drop-panel::before {
  content: "";
  position: absolute;
  inset: 0.5rem 0 0;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 0.85rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
  z-index: -1;
}
.nav-drop-panel > a:first-child {
  margin-top: 0.5rem;
}
.nav-drop-panel > a:last-child {
  margin-bottom: 0.5rem;
}
.nav-drop-panel > a {
  margin-inline: 0.5rem;
}
.nav-drop-panel > a:hover,
.mobile-panel > a:hover {
  background: var(--brand-50);
}
.nd-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand);
  transition: transform 0.2s ease;
}
.nd-icon svg {
  width: 16px;
  height: 16px;
}
.nav-drop-panel > a:hover .nd-icon,
.mobile-panel > a:hover .nd-icon {
  transform: scale(1.1);
}
.nav-drop-panel b,
.mobile-panel b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-900);
}
.nav-drop-panel a[aria-current="page"] b,
.mobile-panel a[aria-current="page"] b {
  color: var(--brand);
}
.nav-drop-panel small,
.mobile-panel small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-500);
}

/* Phone/tablet menu — <details>, no JS */
.mobile-menu {
  display: none;
  position: relative;
  margin-left: 0.25rem;
}
.mobile-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  color: #4b5563;
  cursor: pointer;
}
.mobile-menu summary::-webkit-details-marker {
  display: none;
}
.mobile-menu summary svg {
  width: 20px;
  height: 20px;
}
.mobile-menu[open] summary {
  background: #ffedd5;
  color: #ea580c;
}
.mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: min(18rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 5rem);
  overflow: auto;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 0.85rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
  animation: fade-up 0.2s ease;
}
.mm-label {
  margin: 0.5rem 0.6rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
}
.mobile-panel > a:not(:has(.nd-icon)) {
  padding: 0.55rem 0.6rem;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
  }
}

/* Buttons — mirror the SPA hero buttons (bg-pms-500 gradient, orange glow,
   lift on hover) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px) scale(1.03);
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #ff3c00);
  color: #ffffff;
  box-shadow: 0 10px 24px -8px rgba(236, 110, 5, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px -8px rgba(236, 110, 5, 0.7);
}
.btn-outline {
  background: #ffffff;
  color: var(--brand);
  border: 1px solid var(--brand-200);
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.15);
}
.btn-outline:hover {
  border-color: #ff9a4d;
}

/* Breadcrumb — mirrors the BreadcrumbList JSON-LD in each page's <head> */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--ink-400);
  border-bottom: 1px solid var(--border);
}
.breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--brand);
}

/* Hero — split layout like the SPA hero: copy left, product shot right */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--brand-50), #ffffff);
  padding: 4rem 0 4.5rem;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(236, 110, 5, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}
.hero-grid > *,
.split > * {
  min-width: 0;
}
.hero-copy {
  animation: fade-up 0.6s ease both;
}
.eyebrow {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--brand-200);
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.hero-grid h1 {
  margin-left: 0;
}
.hero .lede {
  max-width: 40rem;
  margin: 1rem auto 2rem;
  color: var(--ink-500);
  font-size: 1.05rem;
}
.hero-grid .lede {
  margin-left: 0;
}
.hero .cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-grid .cta-row {
  justify-content: flex-start;
}
.hero-shot {
  position: relative;
  margin: 0;
  animation: fade-up 0.7s 0.15s ease both;
}
.hero-shot::before {
  content: "";
  position: absolute;
  inset: -1.25rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #ffedd5, #fffbeb);
  filter: blur(20px);
  animation: glow 5s ease-in-out infinite;
}
.hero-shot img {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

/* Chips — FAQ category jump links, restaurant hardware list */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.chip-row a,
.chip-row li {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--brand-200);
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.chip-row a:hover {
  transform: translateY(-2px);
  background: var(--brand-100);
}
.hw-chips {
  justify-content: flex-start;
}
.hw-chips li {
  color: #4b5563;
  border-color: var(--border);
  font-size: 0.72rem;
}

/* Section */
section.block {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
section.block.tinted {
  background: #fafafa;
}
.block h2 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.block .block-lede {
  color: var(--ink-500);
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.feature-card {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #ffffff;
}
.feature-card .icon {
  font-size: 1.15rem;
  line-height: 1;
}
.feature-card h4 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-900);
}
.feature-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.feature-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--brand-200);
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Split block — screenshot beside the copy, alternating sides, like the
   SPA's PMSSection/RMSSection bands */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.split.flip .shot {
  order: -1;
}
.split-copy {
  min-width: 0;
}
.shot {
  position: sticky;
  top: 6rem;
  margin: 0;
}
.shot::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #ffedd5, #fffbeb);
  filter: blur(10px);
  opacity: 0.6;
}
.shot img {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  box-shadow: 0 25px 50px -20px rgba(0, 0, 0, 0.3);
}

/* Evidence / comparison list */
.evidence-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.evidence-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--ink-700);
}
.evidence-list li::before {
  content: "✓";
  color: var(--brand);
  font-weight: 700;
  flex-shrink: 0;
}

/* FAQ accordion (public/faq.html) */
.faq-list {
  display: grid;
  gap: 0.75rem;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover,
.faq-item[open] {
  border-color: var(--brand-200);
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.15);
}
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
  font-weight: 700;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.1rem;
  color: var(--ink-500);
  font-size: 0.92rem;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  text-align: center;
  color: #ffffff;
}
.cta-banner h2 {
  color: #ffffff;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}
.cta-banner .btn-primary {
  background: #ffffff;
  color: var(--brand-dark);
}

/* Footer — mirrors src/pages/landing/component/Footer.tsx */
footer.site-footer {
  background: var(--footer-bg);
  color: #9ca3af;
  margin-top: 3rem;
}
footer.site-footer .footer-main {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
footer.site-footer .footer-col p.col-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}
footer.site-footer .footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.6rem;
}
footer.site-footer .footer-col a:hover {
  color: #ffffff;
}
footer.site-footer .footer-bottom {
  background: var(--footer-bg-dark);
  border-top: 1px solid #1f2937;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #6b7280;
}

/* Motion — scroll reveal is added by /static-seo.js; content is visible
   without JS */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}
@keyframes float {
  50% {
    transform: translateY(-8px);
  }
}
@keyframes glow {
  50% {
    opacity: 0.6;
  }
}
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.pre {
  opacity: 0;
  transform: translateY(24px);
}

@media (max-width: 1024px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-grid {
    text-align: center;
  }
  .hero-grid h1,
  .hero-grid .lede {
    margin-left: auto;
  }
  .hero-grid .cta-row {
    justify-content: center;
  }
  .hero-shot {
    max-width: 36rem;
    margin: 0 auto;
  }
  .split.flip .shot {
    order: 0;
  }
  .shot {
    position: static;
  }
}

@media (max-width: 1024px) {
  footer.site-footer .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal.pre {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  footer.site-footer .footer-main {
    grid-template-columns: 1fr;
  }
}
