/* Premium McDonald's storefront UI layer */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-warm: #fffdf8;
  --text: #1a1a1a;
  --muted: #646464;
  --border: #e8e4de;
  --brand-red: #db0007;
  --brand-yellow: #ffbc0d;
  --brand-gold: #ffc72c;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(219, 0, 7, 0.08);
  --shadow-soft: 0 8px 30px rgba(17, 15, 14, 0.07);
  --radius-lg: 24px;
  --radius-md: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #faf8f4 35%, #ffffff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-main {
  overflow-x: clip;
}

/* Header polish */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.primary-nav > a.nav-link {
  position: relative;
  padding-bottom: 0.2rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.primary-nav > a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.primary-nav > a.nav-link:hover::after,
.primary-nav > a.nav-link.is-active::after {
  transform: scaleX(1);
  rotate: 0deg;
}

.nav-link--menu {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link--menu::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand-red);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.nav-item--menu:hover .nav-link--menu::before,
.nav-item--menu.is-open .nav-link--menu::before,
.nav-item--menu:focus-within .nav-link--menu::before {
  transform: scaleX(1);
}

.header-cart {
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-cart:hover {
  border-color: rgba(219, 0, 7, 0.25);
  box-shadow: 0 2px 12px rgba(219, 0, 7, 0.1);
}

.nav-cta {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Typography */
.section-heading h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.hero-copy h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.page-hero-copy h1,
.product-info h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

.eyebrow {
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

/* Hero */
.hero-section {
  padding: 2.5rem 0 1.5rem;
}

.hero-shell {
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-card);
}

.hero-visual {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 188, 13, 0.2), transparent 35%),
    linear-gradient(145deg, #a80f0a 0%, #db0007 42%, #f5a000 100%);
}

.hero-visual img {
  transition: transform 0.5s var(--ease-out);
}

.hero-shell:hover .hero-visual img {
  transform: scale(1.04) translateY(-4px);
}

.hero-copy {
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}

.hero-side-card {
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid var(--border);
}

.hero-side-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 188, 13, 0.45);
}

/* Cards */
.category-card,
.product-card,
.content-card,
.hero-shell,
.page-hero,
.cart-table,
.form-card,
.summary-card,
.product-gallery,
.product-info,
.empty-state,
.success-card {
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease, border-color 0.28s ease;
}

.category-card {
  background: var(--surface-warm);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 188, 13, 0.4);
}

.category-card img {
  transition: transform 0.3s var(--ease-out);
}

.category-card:hover img {
  transform: scale(1.08);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(255, 188, 13, 0.35);
}

.product-card-media {
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f9f6f0 100%);
}

.product-card-media img {
  transition: transform 0.4s var(--ease-out);
}

.product-card:hover .product-card-media img {
  transform: scale(1.07);
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Badges & pills */
.badge {
  background: linear-gradient(135deg, rgba(255, 188, 13, 0.25), rgba(255, 199, 44, 0.15));
  border: 1px solid rgba(255, 188, 13, 0.35);
}

.pill {
  background: #fff;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.pill.is-active,
.pill:hover {
  background: rgba(255, 188, 13, 0.14);
  border-color: rgba(219, 0, 7, 0.2);
  color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(255, 188, 13, 0.2);
}

.info-tag {
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.info-tag--accent {
  background: linear-gradient(135deg, rgba(255, 188, 13, 0.28), rgba(255, 199, 44, 0.12));
  border-color: rgba(255, 188, 13, 0.4);
}

/* Buttons */
.button-primary {
  background: linear-gradient(180deg, #ffc72c 0%, #ffbc0d 100%);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(255, 188, 13, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(180deg, #ffd54a 0%, #f5b000 100%);
  box-shadow: 0 4px 16px rgba(255, 188, 13, 0.45);
}

.button-primary:active {
  transform: translateY(0);
}

.button-ghost {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.button-ghost:hover {
  opacity: 0.85;
}

/* Page hero */
.page-hero {
  overflow: hidden;
}

.page-hero-media {
  position: relative;
  overflow: hidden;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), transparent 50%);
  pointer-events: none;
}

.page-hero-media img {
  transition: transform 0.6s var(--ease-out);
}

.page-hero:hover .page-hero-media img {
  transform: scale(1.04);
}

.page-hero-copy {
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}

/* Product page */
.product-gallery {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-gallery-main img {
  transition: transform 0.4s var(--ease-out);
}

.product-gallery:hover .product-gallery-main img {
  transform: scale(1.03);
}

.product-meta-card {
  border: 1px solid var(--border);
  background: var(--surface-warm);
}

/* Cart & checkout */
.cart-item {
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-item:hover {
  background: var(--surface-warm);
  border-color: var(--border);
}

.cart-item:first-child {
  padding-top: 1rem;
}

.summary-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #fffdf8 100%);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 0 3px rgba(255, 188, 13, 0.22);
}

.checkout-notice,
.alert-success {
  border: 1px solid rgba(17, 132, 91, 0.15);
  border-radius: var(--radius-md);
}

.alert-error {
  border: 1px solid rgba(180, 35, 24, 0.15);
  border-radius: var(--radius-md);
}

/* Brand lockup */
.brand-logo,
.footer-brand-logo {
  filter: none;
}

.footer-brand-bar {
  padding-top: 0.35rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #f5f3ef 0%, #eceae5 100%);
  margin-top: 2rem;
  padding-top: 2.25rem;
}

.footer-column a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--brand-red);
  transform: translateX(2px);
}

.social-link {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.notice-copy a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Menu dropdown */
@media (min-width: 960px) {
  .menu-panel {
    width: min(880px, calc(100vw - 2rem));
  }

  .menu-panel::after {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  }

  .menu-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

.menu-panel {
  border: 0;
  box-shadow: none;
}

.menu-card {
  border-radius: 14px;
}

.menu-card:hover {
  background: linear-gradient(135deg, rgba(255, 188, 13, 0.16), rgba(255, 199, 44, 0.1));
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.12s; }
.reveal-delay-3 { transition-delay: 0.18s; }

/* Price accent */
.price {
  color: var(--brand-red);
  font-weight: 800;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  border: 1px solid var(--border);
  width: fit-content;
}

/* Success page */
.success-card {
  border: 1px solid rgba(17, 132, 91, 0.12);
  background: linear-gradient(180deg, #fff 0%, #f8fdf9 100%);
}

.success-box {
  border: 1px solid var(--border);
}
