/* =========================================================
   TxtOrders Restaurant Site — Shared Stylesheet
   CSS custom properties are set per-restaurant at generation
   time. See :root overrides in each generated index.html.
   ========================================================= */

:root {
  --color-primary:      #1a1a2e;
  --color-primary-dark: #12121f;
  --color-accent:       #e94560;
  --color-bg:           #f8f8f8;
  --color-surface:      #ffffff;
  --color-text:         #1a1a1a;
  --color-text-muted:   #666666;
  --color-border:       #e0e0e0;
  --color-success:      #22c55e;
  --color-danger:       #ef4444;
  --font-heading:       'Segoe UI', system-ui, sans-serif;
  --font-body:          'Segoe UI', system-ui, sans-serif;
  --radius:             8px;
  --radius-lg:          14px;
  --shadow:             0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:          0 8px 24px rgba(0,0,0,.12);
  --transition:         0.18s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; }

/* ---- Utility ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---- Nav ---- */
.site-nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.nav-logo img { height: 36px; width: auto; border-radius: 4px; }
.nav-links { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav-order-btn {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 20px;
  border-radius: 99px;
  font-size: .9rem;
  font-weight: 600;
  transition: opacity var(--transition);
}
.nav-order-btn:hover { opacity: .85; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  background: var(--color-primary);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.hero p  { font-size: 1.1rem; opacity: .8; max-width: 520px; margin: 0 auto 32px; }
.hero-cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 36px;
  border-radius: 99px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: opacity var(--transition);
}
.hero-cta:hover { opacity: .85; }

/* ---- Section ---- */
.section { padding: 56px 0; }
.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

/* ---- Cards ---- */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,.7);
  padding: 0 0 16px;
  font-size: .85rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
}
.footer-col h4 { color: #fff; margin-bottom: 8px; font-size: .9rem; }
.footer-col a  { display: block; margin-bottom: 4px; transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 12px;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .nav-links, .nav-order-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--color-primary);
    padding: 16px 20px 24px;
    gap: 16px;
  }
}
