/*
Theme Name: RES Table Ordering
Theme URI: https://restableordering.com/
Author: DHM GLONEX LLC
Author URI: https://restableordering.com/
Description: English marketing, product, support, privacy and terms website for the RES Table Ordering Clover ecosystem.
Version: 1.0.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: res-table-ordering
*/

:root {
  --res-ink: #123f38;
  --res-ink-2: #0b2f2b;
  --res-teal: #37b7ad;
  --res-mint: #7ed4bc;
  --res-gold: #f2bd54;
  --res-cream: #f7f4ea;
  --res-white: #ffffff;
  --res-text: #233432;
  --res-muted: #60726f;
  --res-border: #d9e6e1;
  --res-shadow: 0 20px 60px rgba(12, 50, 45, .13);
  --res-radius: 24px;
  --res-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--res-text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: var(--res-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.res-wrap { width: min(calc(100% - 36px), var(--res-width)); margin-inline: auto; }
.res-section { padding: 84px 0; }
.res-section--soft { background: #f5faf8; }
.res-section--dark { color: #fff; background: var(--res-ink-2); }
.res-kicker { margin: 0 0 10px; color: #168f82; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.res-title { max-width: 780px; margin: 0 0 20px; color: var(--res-ink); font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; }
.res-section--dark .res-title { color: #fff; }
.res-lead { max-width: 750px; margin: 0; color: var(--res-muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.res-section--dark .res-lead { color: #cfe3de; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(18, 63, 56, .09); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--res-ink); font-size: 1.13rem; font-weight: 850; text-decoration: none; }
.site-brand img { width: 38px; height: 38px; border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; align-items: center; gap: 22px; padding: 0; margin: 0; list-style: none; }
.site-nav a { color: var(--res-text); font-size: .94rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: #168f82; }
.menu-toggle { display: none; border: 0; color: var(--res-ink); background: transparent; font-size: 1.55rem; cursor: pointer; }

.res-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; color: var(--res-ink-2); background: var(--res-gold); font-weight: 850; text-decoration: none; box-shadow: 0 10px 28px rgba(242, 189, 84, .22); }
.res-button:hover { transform: translateY(-1px); }
.res-button--ghost { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; box-shadow: none; }
.res-button--light { border-color: var(--res-border); color: var(--res-ink); background: #fff; box-shadow: none; }

.res-hero { overflow: hidden; color: #fff; background: radial-gradient(circle at 84% 18%, rgba(126,212,188,.25), transparent 32%), linear-gradient(125deg, #0b302b, #195f53); }
.res-hero__inner { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding-block: 74px; }
.res-hero h1 { margin: 0 0 22px; font-size: clamp(2.7rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.06em; }
.res-hero p { max-width: 660px; margin: 0 0 30px; color: #d4e9e4; font-size: 1.17rem; }
.res-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.res-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.res-badge { padding: 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #def1ec; background: rgba(255,255,255,.07); font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.res-hero__visual { position: relative; }
.res-hero__visual img { display: block; width: 100%; border: 8px solid rgba(255,255,255,.12); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.res-float { position: absolute; right: -16px; bottom: -22px; max-width: 245px; padding: 18px; border-radius: 18px; color: var(--res-text); background: #fff; box-shadow: var(--res-shadow); }
.res-float strong { display: block; color: var(--res-ink); }

.res-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--res-border); border-radius: var(--res-radius); overflow: hidden; background: var(--res-border); }
.res-stat { padding: 30px 24px; background: #fff; }
.res-stat strong { display: block; color: var(--res-ink); font-size: 1.65rem; line-height: 1.2; }
.res-stat span { color: var(--res-muted); font-size: .9rem; }

.res-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 38px; }
.res-card { padding: 30px; border: 1px solid var(--res-border); border-radius: var(--res-radius); background: #fff; box-shadow: 0 12px 34px rgba(12, 50, 45, .06); }
.res-card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; color: var(--res-ink); background: #dff3ed; font-size: 1.25rem; font-weight: 900; }
.res-card h3 { margin: 0 0 10px; color: var(--res-ink); font-size: 1.25rem; }
.res-card p { margin: 0; color: var(--res-muted); }

.res-split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.res-split img { width: 100%; border: 1px solid var(--res-border); border-radius: var(--res-radius); box-shadow: var(--res-shadow); }
.res-list { display: grid; gap: 14px; padding: 0; margin: 26px 0 0; list-style: none; }
.res-list li { position: relative; padding-left: 30px; }
.res-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #168f82; font-weight: 900; }

.res-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 38px; }
.res-flow__item { padding: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.06); }
.res-flow__item span { display: block; margin-bottom: 10px; color: var(--res-gold); font-size: .8rem; font-weight: 900; }
.res-flow__item strong { display: block; }

.res-cta { padding: 54px; border-radius: 30px; color: #fff; background: linear-gradient(125deg, #123f38, #237b6e); box-shadow: var(--res-shadow); }
.res-cta h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.res-cta p { max-width: 700px; margin: 0 0 24px; color: #d9ebe7; }

.page-hero { padding: 88px 0 62px; color: #fff; background: linear-gradient(125deg, #0b302b, #1f6f62); }
.page-hero h1 { max-width: 820px; margin: 0 0 16px; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.05em; }
.page-hero p { max-width: 720px; color: #d5e8e4; font-size: 1.15rem; }
.page-content { padding: 72px 0; }
.page-content__inner { max-width: 880px; }
.page-content h2, .page-content h3 { color: var(--res-ink); line-height: 1.2; }
.page-content h2 { margin-top: 48px; font-size: 2rem; }
.page-content h3 { margin-top: 30px; }
.page-content table { width: 100%; border-collapse: collapse; }
.page-content th, .page-content td { padding: 12px; border: 1px solid var(--res-border); text-align: left; vertical-align: top; }

.site-footer { padding: 58px 0 24px; color: #d6e6e2; background: #082823; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.site-footer h3, .site-footer h4 { margin-top: 0; color: #fff; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d6e6e2; }
.site-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #9fbab4; font-size: .88rem; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 76px 0 auto; display: none; padding: 20px; border-bottom: 1px solid var(--res-border); background: #fff; }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: flex-start; flex-direction: column; }
  .site-nav .res-button { margin-top: 16px; }
  .res-hero__inner, .res-split { grid-template-columns: 1fr; }
  .res-hero__visual { max-width: 720px; }
  .res-stats { grid-template-columns: repeat(2, 1fr); }
  .res-grid-3 { grid-template-columns: 1fr 1fr; }
  .res-flow { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .res-section { padding: 62px 0; }
  .res-hero__inner { min-height: auto; padding-block: 60px 88px; }
  .res-float { right: 10px; bottom: -48px; }
  .res-stats, .res-grid-3, .res-flow, .site-footer__grid { grid-template-columns: 1fr; }
  .res-cta { padding: 34px 26px; }
}
