/* Al-Taj royal emblem system — burgundy, antique gold, ivory */
:root {
  color-scheme: dark;
  --obsidian: #050505;
  --wine-deep: #27030a;
  --burgundy: #48050f;
  --burgundy-mid: #5a0c18;
  --ruby: #8e1037;
  --gold: #d69943;
  --gold-deep: #b87428;
  --gold-bar: 2px;
  --champagne: #efc26b;
  --ivory: #f8efe4;
  --ivory-muted: #d9c9b8;
  --line: rgba(214, 153, 67, 0.38);
  --line-soft: rgba(248, 239, 228, 0.12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
  background: var(--obsidian);
}

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 90;
  background: var(--champagne);
  color: var(--wine-deep);
  padding: 8px 12px;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--champagne);
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-gold {
  background: linear-gradient(180deg, #e8bc6a 0%, var(--gold) 55%, #b87428 100%);
  color: var(--wine-deep);
  border-color: #b87428;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn-gold:hover {
  background: linear-gradient(180deg, var(--champagne) 0%, #e0a24c 100%);
  color: var(--obsidian);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(239, 194, 107, 0.55);
}

.btn-outline:hover {
  background: rgba(239, 194, 107, 0.1);
  border-color: var(--champagne);
  color: var(--champagne);
}

.btn-line {
  background: transparent;
  color: var(--champagne);
  border-color: var(--gold);
}

.btn-line:hover {
  background: var(--gold);
  color: var(--wine-deep);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* —— Masthead —— */
.mast {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--obsidian);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-top: var(--gold-bar) solid var(--gold);
  border-bottom: var(--gold-bar) solid var(--gold);
}

@media (max-width: 1100px) {
  .brand img {
    height: 58px;
    max-width: min(380px, 40vw);
  }

  .order-btn,
  .order-btn-gold,
  .order-btn-outline {
    padding: 0 12px;
    font-size: 12px;
    min-height: 40px;
  }

  .mast-links {
    gap: 14px;
  }

  .mast-links a {
    font-size: 14px;
  }
}

.topbar {
  background: var(--wine-deep);
  color: var(--ivory-muted);
  border-top: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 0;
}

.topbar a {
  color: var(--ivory);
}

.topbar a:hover {
  color: var(--champagne);
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-dot {
  color: var(--gold);
}

.topbar-hours {
  color: var(--champagne);
}

.nav-shell {
  background: var(--obsidian);
  border-bottom: 0;
}

.nav-bar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  z-index: 1;
}

.brand img {
  height: 72px;
  width: auto;
  max-width: min(520px, 48vw);
  object-fit: contain;
}

.mast-links {
  display: flex;
  align-items: center;
  gap: 22px;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  margin-left: 0;
}

.mast-links a,
.cart-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ivory);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-actions .cart-link {
  color: var(--gold);
  min-width: 44px;
  justify-content: center;
}

.mast-links a:hover,
.mast-links a[aria-current="page"],
.cart-link:hover {
  color: var(--champagne);
}

.mast-links a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.order-btn,
.order-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: linear-gradient(180deg, #e8bc6a 0%, var(--gold) 52%, var(--gold-deep) 100%);
  color: var(--wine-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid var(--gold-deep);
  white-space: nowrap;
}

.order-btn:hover,
.order-btn-gold:hover {
  background: linear-gradient(180deg, var(--champagne) 0%, #e0a24c 100%);
  color: var(--obsidian);
}

.order-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  background: transparent;
  color: var(--champagne);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid rgba(239, 194, 107, 0.55);
  white-space: nowrap;
}

.order-btn-outline:hover {
  background: rgba(239, 194, 107, 0.1);
  border-color: var(--champagne);
}

.menu-toggle {
  display: none;
}

.nav-call,
.nav-cart {
  display: none;
}

.cart-link {
  gap: 6px;
  color: var(--gold);
}

.cart-link:hover {
  color: var(--champagne);
}

.cart-link svg,
.nav-cart svg,
.nav-call svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.cart-link .cart-count,
.nav-cart .cart-count {
  min-width: 1.25em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--champagne);
}

.mast-menu {
  display: contents;
}

.mast a:focus-visible,
.mast button:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

/* —— Footer —— */
.site-footer {
  background: var(--wine-deep);
  color: var(--ivory-muted);
  padding: 62px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.75fr;
  gap: 55px;
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--champagne);
  margin: 7px 0 8px;
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
  max-width: 360px;
}

.site-footer h3 {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 10px 0 15px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 13px;
}

.site-footer a:hover {
  color: var(--champagne);
}

.copyright {
  font-size: 11px;
  padding-top: 25px;
  color: rgba(217, 201, 184, 0.65);
}

/* —— Mobile mast —— */
@media (max-width: 860px) {
  html {
    scroll-padding-top: 76px;
  }

  .topbar {
    display: none;
  }

  .mast {
    border-top: var(--gold-bar) solid var(--gold);
    border-bottom: var(--gold-bar) solid var(--gold);
  }

  .nav-bar {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 72px;
    height: auto;
    margin: 0;
    padding: 8px 12px;
    gap: 8px;
    grid-template-columns: 48px 1fr 48px;
  }

  .brand {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 100%;
    justify-self: center;
  }

  .mast .brand img {
    height: 52px;
    max-width: min(300px, 72vw);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--champagne);
    cursor: pointer;
  }

  .nav-call,
  .nav-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    position: relative;
    z-index: 2;
  }

  .nav-call:hover,
  .nav-cart:hover {
    color: var(--champagne);
  }

  .nav-cart .cart-count {
    position: absolute;
    top: 6px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #e8bc6a 0%, var(--gold) 55%, #b87428 100%);
    color: var(--wine-deep);
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }

  .menu-toggle-box {
    position: relative;
    display: block;
    width: 22px;
    height: 16px;
  }

  .menu-toggle-box span {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--champagne);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle-box span:nth-child(1) {
    top: 0;
  }

  .menu-toggle-box span:nth-child(2) {
    top: 7px;
  }

  .menu-toggle-box span:nth-child(3) {
    top: 14px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-box span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
  }

  .mast-menu {
    display: none;
    position: absolute;
    z-index: 60;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--wine-deep);
    border-top: 1px solid rgba(214, 153, 67, 0.4);
    padding: 4px 20px 20px;
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.4);
  }

  .mast-menu.is-open {
    display: block;
  }

  .mast-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    grid-column: auto;
    justify-self: stretch;
  }

  .nav-actions {
    grid-column: auto;
    justify-self: stretch;
  }

  .mast-links a {
    justify-content: flex-start;
    min-height: 52px;
    padding: 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(214, 153, 67, 0.22);
    box-shadow: none;
  }

  .mast-links a[aria-current="page"] {
    color: var(--champagne);
    box-shadow: none;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    margin: 16px 0 0;
  }

  .order-btn,
  .order-btn-gold,
  .order-btn-outline,
  .cart-link {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .cart-link {
    justify-content: center;
    border: 1px solid rgba(239, 194, 107, 0.55);
    color: var(--champagne);
  }

  .nav-actions .cart-link {
    display: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }
}

/* Sticky pickup / delivery docks */
.mobile-order,
.dock {
  border-top: var(--gold-bar) solid var(--gold);
  border-bottom: var(--gold-bar) solid var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .order-btn,
  .order-btn-gold,
  .order-btn-outline {
    transition: none;
  }
}
