/* =============================================================
   Rewind Dine — Shared Site Styles (v4 preview)
   Design tokens, reset, header, mobile overlay, footer, buttons.
   Mirrors what will live in Odoo website.layout inheritance.
   ============================================================= */

/* --- Design Tokens --- */
:root {
  --color-background: #FDFDFD;
  --color-text: #2A2C24;
  --color-primary: #3F4634;
  --color-accent: #A98867;
  --color-highlight: #EAE6DA;
  --font-heading: 'EB Garamond', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

/* --- Reset --- */
html, body { height: 100%; margin: 0; }
* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }
body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main.rewind-main { flex: 1; }

/* --- Sticky Header --- */
.rewind-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 80px;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-highlight);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo a {
  font-family: var(--font-heading);
  font-size: 2.7rem;
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1;
  display: inline-block;
}
.rewind-nav { display: flex; }
.rewind-nav a {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0 16px;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.rewind-nav a:hover { color: var(--color-accent); }
.rewind-nav a.active {
  color: var(--color-accent);
  font-weight: 600;
  position: relative;
}
.rewind-nav a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 2px;
}
.mobile-menu { display: none; cursor: pointer; padding: 10px; }
.hamburger-line {
  width: 30px; height: 2px;
  background: var(--color-text); margin: 6px 0;
}

/* --- Mobile Menu Overlay --- */
#mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: #FDFDFD;
  z-index: 9999;
  padding: 80px 20px;
  display: none;
}
#mobile-menu-overlay .close-btn {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px; color: #3F4634;
  line-height: 1; font-weight: bold;
  background: #f0f0f0;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}
#mobile-menu-overlay h2 {
  color: #3F4634;
  font-family: var(--font-heading);
  margin: 0 0 20px;
  text-align: center;
  font-size: 2rem;
}
#mobile-menu-overlay .nav-button-group {
  width: 100%; max-width: 400px;
  margin: 0 auto; padding-top: 50px; text-align: center;
}
#mobile-menu-overlay .nav-button-group a {
  display: block;
  padding: 15px;
  margin: 10px 0;
  background: #f0f0f0;
  color: #3F4634;
  border-radius: 8px;
  border: 2px solid #ddd;
  font-size: 1.3rem;
}
#mobile-menu-overlay .nav-button-group a.active {
  background: var(--color-highlight);
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Canonical Site Footer (horizontal) --- */
.site-footer {
  background: var(--color-highlight);
  padding: 22px 40px;
  color: #5B5E52;
  width: 100%;
  border-top: 1px solid #e2ddcf;
  font-family: var(--font-body);
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.footer-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  color: #5B5E52;
}
.footer-left a { color: #3F4634; font-weight: 500; }
.footer-left a:hover { text-decoration: underline; }
.footer-divider { color: #ccc; }
.footer-copy { color: #888; font-size: 0.88rem; }
.footer-copy a { color: #5B5E52; font-weight: 400; }
.footer-copy a:hover { text-decoration: underline; }
.footer-social {
  display: flex; gap: 14px;
  align-items: center; flex-shrink: 0;
}
.footer-social a {
  color: #3F4634;
  display: flex; align-items: center;
  transition: color .15s;
}
.footer-social a:hover { color: var(--color-accent); }

/* --- Base CTA Buttons (used on all pages) --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #ffffff;
  transition: background-color .15s, color .15s, border-color .18s;
  text-decoration: none;
}
.cta-button:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.secondary-cta {
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.secondary-cta:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

hr.section-divider {
  border: none;
  border-top: 1px solid var(--color-highlight);
  margin: 80px 0;
}

/* --- Section Eyebrow (used across pages) --- */
.section-eyebrow {
  text-transform: uppercase;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* --- Page-Content Container --- */
.page-content {
  margin: 0 auto;
  padding: 60px 40px;
  width: 100%;
  max-width: 1100px;
}

/* --- Responsive header/footer --- */
@media (max-width: 768px) {
  .rewind-nav { display: none; }
  .mobile-menu { display: block; }
  .rewind-header { padding: 14px 20px; }
  .page-content { padding: 40px 20px; }
  .site-footer {
    padding: 20px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .footer-left {
    justify-content: center;
    font-size: 0.85rem;
    gap: 4px 10px;
  }
  .footer-copy { width: 100%; text-align: center; }
  .footer-social { justify-content: center; }
}
