/* ============================================================
   LAYOUT — Container, nav, footer, section wrappers
   ============================================================ */

/* ----------------------------------------------------------
   Container
---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ----------------------------------------------------------
   Navigation
---------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-nav.scrolled {
  background: rgba(26, 23, 20, 0.97);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
}

/* Light nav variant (used on light-bg pages) */
.site-nav--light {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-nav--light.scrolled {
  background: var(--color-bg);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Logo text fallback if image not available */
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}

.nav-logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-nav--light .nav-logo-text {
  color: var(--color-text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-amber);
  border-radius: 1px;
}

.site-nav--light .nav-links a {
  color: var(--color-text-secondary);
}

.site-nav--light .nav-links a:hover,
.site-nav--light .nav-links a.active {
  color: var(--color-text);
}

/* "Coming Soon" badge on Order Ahead link */
.nav-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-amber);
  color: var(--color-dark-bg);
  padding: 1px 5px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.5;
}

.nav-cta {
  display: none;
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: white;
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

.site-nav--light .nav-hamburger span {
  background: var(--color-text);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-dark-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.open {
  display: flex;
  opacity: 1;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-dark-text);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-overlay a:hover {
  color: var(--color-amber);
}

.nav-overlay-phone {
  margin-top: var(--space-lg);
  font-size: var(--text-lg) !important;
  font-family: var(--font-body) !important;
  color: var(--color-amber) !important;
  font-weight: 500 !important;
}

.nav-overlay-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark-text);
  font-size: var(--text-2xl);
  cursor: pointer;
}

/* Page offset for fixed nav */
.page-body {
  padding-top: var(--nav-height);
}

/* Pages that start with a hero need no top padding */
.page-body--hero {
  padding-top: 0;
}

/* ----------------------------------------------------------
   Section base styles
---------------------------------------------------------- */

.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-2xl) 0;
}

.section--dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-header--center {
  text-align: center;
}

/* ----------------------------------------------------------
   Grid helpers
---------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */

.site-footer {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

/* legacy — kept for backward compat */
.footer-brand img {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.6);
  margin-top: 0;
  line-height: 1.55;
}

/* Footer hours block */
.footer-hours__days {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
}

.footer-hours__time {
  font-size: var(--text-sm);
  color: var(--color-amber);
  font-weight: 500;
  line-height: 1.8;
}

.footer-hours__note {
  font-size: var(--text-xs);
  color: rgba(245, 240, 232, 0.45);
  margin-top: var(--space-xs);
}

/* Footer address link */
.footer-address-link {
  color: rgba(245, 240, 232, 0.4);
  font-size: var(--text-xs);
  transition: color var(--transition-fast);
}

.footer-address-link:hover {
  color: rgba(245, 240, 232, 0.7);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-amber);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-dark-text);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(245, 240, 232, 0.7);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-amber);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 240, 232, 0.2);
  border-radius: var(--radius-md);
  color: rgba(245, 240, 232, 0.7);
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.1);
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(245, 240, 232, 0.4);
  line-height: 1.5;
}
