/*
Theme Name: TableSyncer
Theme URI: https://tablesyncer.co.uk
Author: BeAppi Studio
Author URI: https://tablesyncer.co.uk
Description: A premium, conversion-focused marketing theme for TableSyncer — the flat-fee reservation platform for independent restaurants. Invitation-only by design: every call to action routes guests to request access rather than self-serve sign-up. Built classic-PHP for maximum host compatibility, with a secure built-in contact handler, Customizer controls, and a refined champagne-on-ink aesthetic.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tablesyncer
Tags: business, restaurant, one-page, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ============================================================= *
 * 1. Design tokens
 * ============================================================= */
:root {
  --ink:        #0A0A0B;
  --ink-2:      #121214;
  --ink-3:      #171719;
  --cream:      #FFFFFF;
  --cream-2:    #EDEDED;
  --gold:       #E11D2A;
  --gold-soft:  #FF3B47;
  --gold-deep:  #A6121C;
  --text:       #F4F4F5;
  --muted:      rgba(255, 255, 255, 0.62);
  --muted-2:    rgba(255, 255, 255, 0.40);
  --line:       rgba(255, 255, 255, 0.13);
  --line-2:     rgba(255, 255, 255, 0.07);
  --ink-on-gold:#FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================= *
 * 2. Reset & base
 * ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-soft); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 0.4em; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: 0.7; }
.section { padding: 120px 0; position: relative; }
.section--tight { padding: 90px 0; }
.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--muted); font-size: 19px; margin-bottom: 0; }
.lead { font-size: 20px; color: var(--muted); }

/* ============================================================= *
 * 3. Buttons
 * ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 15px 30px; border-radius: 100px; cursor: pointer;
  border: 1px solid transparent; transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: var(--ink-on-gold); box-shadow: 0 12px 30px -10px rgba(225, 29, 42, 0.6);
}
.btn--gold:hover { color: var(--ink-on-gold); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(225, 29, 42, 0.75); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold); background: rgba(225, 29, 42, 0.06); }
.btn--block { width: 100%; }
.btn--lg { padding: 18px 38px; font-size: 16px; }

/* ============================================================= *
 * 4. Header / nav
 * ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 14, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand__mark { width: auto; height: 38px; flex-shrink: 0; }
.brand__name { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand__name b { color: var(--gold); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav__menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav__menu a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav__menu a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================= *
 * 5. Hero
 * ============================================================= */
.hero { position: relative; padding: 96px 0 110px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(820px 420px at 78% 8%, rgba(225, 29, 42, 0.16), transparent 60%),
    radial-gradient(640px 380px at 10% 90%, rgba(225, 29, 42, 0.07), transparent 60%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.02em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { font-size: 20px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__note { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted-2); }
.hero__note svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* Product mock card */
.mock {
  position: relative; background: linear-gradient(165deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow);
}
.mock::after {
  content: "Powered by TableSyncer"; position: absolute; bottom: -13px; right: 22px;
  background: var(--gold); color: var(--ink-on-gold); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px;
}
.mock__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock__title { font-family: var(--serif); font-size: 19px; }
.mock__title span { color: var(--gold); }
.mock__close { color: var(--muted-2); font-size: 18px; }
.mock__label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.mock__guests { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 20px; }
.mock__g { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); }
.mock__g.is-on { background: rgba(225, 29, 42, 0.14); border-color: var(--gold); color: var(--gold-soft); }
.mock__times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock__t { border: 1px solid var(--line); border-radius: 10px; padding: 11px 0; text-align: center; font-size: 13px; color: var(--muted); }
.mock__t.is-on { background: var(--gold); border-color: var(--gold); color: var(--ink-on-gold); font-weight: 600; }

/* ============================================================= *
 * 6. Trust bar
 * ============================================================= */
.trust { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 30px 0; }
.trust__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 40px; text-align: center; }
.trust__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.trust__names { display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.trust__names span { font-family: var(--serif); font-size: 19px; color: var(--muted); letter-spacing: 0.02em; }

/* ============================================================= *
 * 7. Features
 * ============================================================= */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: linear-gradient(180deg, var(--ink-2), rgba(21, 21, 26, 0.4));
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: 34px 30px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.feature:hover { border-color: rgba(225, 29, 42, 0.4); transform: translateY(-4px); }
.feature__icon {
  width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: rgba(225, 29, 42, 0.1); border: 1px solid rgba(225, 29, 42, 0.28); margin-bottom: 22px;
}
.feature__icon svg { width: 24px; height: 24px; color: var(--gold-soft); }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }

/* ============================================================= *
 * 8. How it works
 * ============================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 36px 30px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink-2); }
.step__num { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--ink-on-gold); width: 38px; height: 38px; border-radius: 100px; background: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }

/* ============================================================= *
 * 9. Split / showcase
 * ============================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: linear-gradient(165deg, var(--ink-3), var(--ink-2));
  box-shadow: var(--shadow);
}
.checklist { list-style: none; margin: 26px 0 0; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; padding: 11px 0; color: var(--text); font-size: 16px; border-bottom: 1px solid var(--line-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { width: 21px; height: 21px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.stat-row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.stat__n { font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; }
.stat__l { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-top: 8px; }

/* ============================================================= *
 * 10. Pricing
 * ============================================================= */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  position: relative; width: 100%; max-width: 480px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink-3));
  border: 1px solid rgba(225, 29, 42, 0.35); border-radius: 24px; padding: 46px 44px; text-align: center;
  box-shadow: 0 40px 90px -40px rgba(225, 29, 42, 0.35);
}
.price-card__tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(225, 29, 42, 0.4); padding: 6px 12px; border-radius: 100px; }
.price-card h3 { font-size: 24px; margin-bottom: 8px; }
.price-card__amount { font-family: var(--serif); font-size: 64px; color: var(--text); line-height: 1; margin: 18px 0 4px; }
.price-card__amount sup { font-size: 26px; color: var(--gold); vertical-align: super; }
.price-card__per { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.price-card .checklist { text-align: left; margin-top: 0; margin-bottom: 30px; }
.price-card__foot { font-size: 13px; color: var(--muted-2); margin-top: 18px; margin-bottom: 0; }

/* ============================================================= *
 * 11. Testimonial
 * ============================================================= */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote__mark { font-family: var(--serif); font-size: 80px; line-height: 0.4; color: var(--gold); opacity: 0.5; }
.quote blockquote { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.35; margin: 0 0 26px; font-style: italic; }
.quote__by { font-size: 15px; color: var(--muted); letter-spacing: 0.02em; }
.quote__by b { color: var(--gold-soft); font-weight: 600; font-style: normal; }

/* ============================================================= *
 * 12. Contact
 * ============================================================= */
.contact { position: relative; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% 0%, rgba(225, 29, 42, 0.1), transparent 65%); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact__aside h2 { font-size: clamp(30px, 4vw, 44px); }
.contact__aside p { color: var(--muted); font-size: 18px; }
.contact__points { list-style: none; margin: 28px 0 0; }
.contact__points li { display: flex; gap: 13px; align-items: flex-start; padding: 10px 0; color: var(--text); }
.contact__points svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact__direct { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.contact__direct a { font-weight: 600; }

.form-card { background: linear-gradient(180deg, var(--ink-2), var(--ink-3)); border: 1px solid var(--line); border-radius: 22px; padding: 38px 36px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: 11px;
  color: var(--text); font-family: var(--sans); font-size: 15.5px; padding: 13px 15px; transition: border-color 0.2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 120px; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { margin-top: 6px; }
.form-fineprint { font-size: 12.5px; color: var(--muted-2); margin: 16px 0 0; text-align: center; }

.notice { border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; font-size: 15px; font-weight: 500; }
.notice--ok { background: rgba(225, 29, 42, 0.12); border: 1px solid rgba(225, 29, 42, 0.45); color: var(--gold-soft); }
.notice--err { background: rgba(220, 80, 80, 0.1); border: 1px solid rgba(220, 80, 80, 0.4); color: #f0b4b4; }

/* ============================================================= *
 * 13. Footer
 * ============================================================= */
.site-footer { border-top: 1px solid var(--line-2); padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__tag { color: var(--muted); font-size: 15px; max-width: 320px; margin-top: 18px; }
.footer__col h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 11px; }
.footer__col a { color: var(--muted); font-size: 15px; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted-2); }
.ts-beappi { color: inherit; font-weight: 700; text-decoration: none; transition: color .2s; }
.ts-beappi:hover { color: var(--gold); }

/* ============================================================= *
 * 14. Reveal animation
 * ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================================================= *
 * 15. Responsive
 * ============================================================= */
@media (max-width: 960px) {
  .hero__grid, .split, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .features-grid, .steps { grid-template-columns: 1fr 1fr; }
  .hero__mock-wrap { max-width: 460px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .nav__menu, .nav .nav__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { gap: 12px; }
  .features-grid, .steps, .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .mobile-open .nav__menu {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 22px 28px; gap: 18px; align-items: flex-start;
  }
}
