/* Shared header + footer (the kora:shell regions), copied from index.html.
 *
 * Every page links this AFTER its own <style>, so the header and footer look the same on every page
 * whatever that page's own styles say. Colours and type sizes are set on the header and footer
 * themselves, not on :root, so pages with their own palette keep it. Base rules use :where() (zero
 * specificity) so they never beat a class rule.
 */

.site-header,
.site-footer {
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;
  --space-section-sm: 80px;
  --space-section-md: 112px;
  --space-section-lg: 140px;
  --c-primary:   #000000;
  --c-secondary: #F6EEE0;
  --c-accent:    #8A8A8A;
  --c-white:     #FFFDF9;
  --c-dark:      #1F160E;
  --c-mid:       #5C4D3E;
  --c-border:    #EADBCE;
  font-family: "Nunito", sans-serif;
}
/* No dark override of these colours: the header and footer sit on a dark background in both themes,
   so "white" (logo name, nav links, Order Now, theme icon, footer headings) must stay light. The
   dark theme only changes their background colours, further down. */

:where(.site-header, .site-footer) *,
:where(.site-header, .site-footer) *::before,
:where(.site-header, .site-footer) *::after { box-sizing: border-box; margin: 0; padding: 0; }
:where(.site-header, .site-footer) a { text-decoration: none; color: inherit; }
:where(.site-header, .site-footer) img { display: block; max-width: 100%; }
:where(.site-header, .site-footer) button { font: inherit; }
:where(.site-header, .site-footer) .container {
  width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px;
}
@media (min-width: 768px) { :where(.site-header, .site-footer) .container { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1280px) { :where(.site-header, .site-footer) .container { padding-left: 48px; padding-right: 48px; } }
:where(.site-header) .btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 8px;
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.02em; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 200ms ease, opacity 200ms ease;
}

.btn-outline {background-color: transparent;
      color: var(--c-white);
      border-color: rgba(255,255,255,0.6);}
.btn-outline:hover {background-color: rgba(255,255,255,0.12);
      border-color: var(--c-white);}
.nav-link {font-size: var(--text-sm);
      font-weight: 600;
      color: rgba(255,255,255,0.85);
      transition: color 200ms ease;
      position: relative;}
.nav-link::after {content: "";
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--c-white);
      transition: width 200ms ease;}
.nav-link:hover {color: var(--c-white);}
.nav-link:hover::after {width: 100%;}
.site-header {position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background-color: var(--c-primary);
      box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);}
.header-inner {display: flex;
      align-items: center;
      justify-content: space-between;
      height: 68px;}
.logo-wrap {display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;}
.logo-img {width: auto;
      max-height: 44px;
      object-fit: contain;
      border-radius: 6px;}
.logo-name {font-size: var(--text-sm);
      font-weight: 700;
      color: var(--c-white);
      line-height: 1.2;
      max-width: 160px;}
.nav-desktop {display: none;
      align-items: center;
      gap: 32px;}
@media (min-width: 900px) {
  .nav-desktop {display: flex;}
}
.nav-cta {display: none;}
@media (min-width: 900px) {
  .nav-cta {display: inline-flex;}
}
.nav-toggle {display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;}
@media (min-width: 900px) {
  .nav-toggle {display: none;}
}
.nav-toggle span {display: block;
      width: 100%;
      height: 2px;
      background: var(--c-white);
      border-radius: 2px;
      transition: transform 200ms ease, opacity 200ms ease;}
.nav-toggle.is-open span:nth-child(1) {transform: translateY(7px) rotate(45deg);}
.nav-toggle.is-open span:nth-child(2) {opacity: 0;}
.nav-toggle.is-open span:nth-child(3) {transform: translateY(-7px) rotate(-45deg);}
.nav-mobile {display: none;
      flex-direction: column;
      background: var(--c-primary);
      border-top: 1px solid rgba(255,255,255,0.15);
      padding: 20px 24px 28px;
      gap: 4px;}
.nav-mobile.is-open {display: flex;}
.nav-mobile .nav-link {padding: 10px 0;
      font-size: var(--text-base);
      border-bottom: 1px solid rgba(255,255,255,0.08);}
.nav-mobile .nav-link:last-of-type {border-bottom: none;}
.nav-mobile .btn {margin-top: 16px; width: 100%; justify-content: center;}
.site-footer {background-color: #143823;
      color: rgba(255,255,255,0.7);}
.footer-top {padding-top: 72px;
      padding-bottom: 56px;}
.footer-grid {display: grid;
      grid-template-columns: 1fr;
      gap: 48px;}
@media (min-width: 640px) {
  .footer-grid {grid-template-columns: 1fr 1fr; gap: 40px;}
}
@media (min-width: 1024px) {
  .footer-grid {grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;}
}
.footer-brand p {font-size: var(--text-sm);
      line-height: 1.7;
      margin-top: 16px;
      max-width: 280px;}
.footer-logo-img {width: auto;
      max-height: 48px;
      object-fit: contain;
      border-radius: 6px;}
.footer-col-title {font-size: var(--text-xs);
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--c-white);
      margin-bottom: 20px;}
.footer-link {display: block;
      font-size: var(--text-sm);
      color: rgba(255,255,255,0.65);
      padding: 5px 0;
      transition: color 200ms ease;}
.footer-link:hover {color: var(--c-white);}
.footer-contact-item {display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: var(--text-sm);
      color: rgba(255,255,255,0.65);
      margin-bottom: 12px;}
.footer-contact-item svg {flex-shrink: 0; margin-top: 2px;}
.footer-bottom {border-top: 1px solid rgba(255,255,255,0.1);
      padding: 24px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      text-align: center;}
@media (min-width: 640px) {
  .footer-bottom {flex-direction: row;
        justify-content: space-between;
        text-align: left;}
}
.footer-bottom p {font-size: var(--text-xs);
      color: rgba(255,255,255,0.45);}
.footer-social {display: flex;
      align-items: center;
      gap: 16px;}
.footer-social a {display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.7);
      transition: background 200ms ease, color 200ms ease;}
.footer-social a:hover {background: var(--c-primary);
      color: var(--c-white);}
html.theme-transitioning,
    html.theme-transitioning *,
    html.theme-transitioning *::before,
    html.theme-transitioning *::after {transition: background-color 350ms cubic-bezier(0.4, 0, 0.2, 1),
                  color 350ms cubic-bezier(0.4, 0, 0.2, 1),
                  border-color 350ms cubic-bezier(0.4, 0, 0.2, 1),
                  box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1),
                  fill 350ms cubic-bezier(0.4, 0, 0.2, 1),
                  stroke 350ms cubic-bezier(0.4, 0, 0.2, 1) !important;
      transition-delay: 0s !important;}
[data-theme="dark"] .site-header {background-color: #0b0f19;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);}
[data-theme="dark"] .nav-mobile {background: #0b0f19;}
[data-theme="dark"] .site-footer {background-color: #0d2317;}
.theme-toggle {display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.12);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: var(--c-white);
      cursor: pointer;
      padding: 0;
      transition: background-color 200ms ease, transform 200ms ease, border-color 200ms ease;}
.theme-toggle:hover {background: rgba(255, 255, 255, 0.22);
      transform: scale(1.06);}
.theme-toggle:active {transform: scale(0.94);}
.theme-toggle:focus-visible {outline: 2px solid #ffffff;
      outline-offset: 2px;}
.theme-icon-sun,
    .theme-icon-moon {width: 18px;
      height: 18px;
      transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);}
.theme-toggle:hover .theme-icon-sun,
    .theme-toggle:hover .theme-icon-moon {transform: rotate(15deg);}
html:not([data-theme="dark"]) .theme-icon-sun {display: none;}
html:not([data-theme="dark"]) .theme-icon-moon {display: block;}
html[data-theme="dark"] .theme-icon-sun {display: block;}
html[data-theme="dark"] .theme-icon-moon {display: none;}
}


.site-header,
.site-footer {
  transition: background-color 350ms cubic-bezier(0.4, 0, 0.2, 1), color 350ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 350ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 350ms cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-footer, html.theme-transitioning, html.theme-transitioning * { transition: none !important; }
}

/* Privacy / Terms: their content starts under the fixed 68px header. */
main.kora-legal { padding-top: calc(68px + 3rem); }

/* Nine nav links plus the restaurant name do not fit the site's 1200px content width, so the header
   gets a slightly wider container and a fixed gap between logo, nav and buttons. Below 1366px the
   name next to the logo is hidden (the logo stays) so the links never wrap or touch. */
.nav-desktop .nav-link { white-space: nowrap; }
.site-header .header-inner { gap: 24px; }
@media (min-width: 900px) {
  .site-header .container { max-width: 1320px; }
  .nav-desktop { gap: 18px; }
}
@media (min-width: 900px) and (max-width: 1365px) {
  .header-actions { gap: 8px !important; }
  .nav-cta { padding: 8px 14px !important; }
  .logo-name { display: none; }
}
