/* Golden Crust Pizza — UAE Design System 4.0 tokens */
:root {
  --gold-50: #F9F7ED;
  --gold-100: #F2ECCF;
  --gold-200: #E6D7A2;
  --gold-500: #B68A35;
  --gold-primary: #90702A;
  --gold-700: #7C5E24;
  --gold-800: #6C4527;
  --black-50: #F7F7F7;
  --black-100: #E1E3E5;
  --black-200: #C3C6CB;
  --black-600: #4B4F58;
  --black-700: #3E4046;
  --black-800: #232528;
  --black-900: #1B1D21;
  --white: #FFFFFF;
  --green-50: #F3FAF4;
  --green-400: #5A9A63;
  --green-700: #2F663C;
  --red-50: #FEF2F2;
  --red-400: #D15A4A;
  --red-700: #B52520;
  --mushroom: #8B5A3C;
  --page: 1440px;
  --container: 1240px;
  --gutter: 100px;
  --radius: 8px;
  --shadow: 0 8px 28px rgba(27, 29, 33, 0.07);
  --shadow-soft: 0 2px 8px rgba(27, 29, 33, 0.05);
  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--gold-primary);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--black-800);
  background: var(--black-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold-primary); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.page {
  width: var(--page);
  margin: 0 auto;
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

/* Type */
.h1 { font-family: "Inter", sans-serif; font-weight: 700; font-size: 48px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; color: var(--black-800); }
.h2 { font-family: "Inter", sans-serif; font-weight: 700; font-size: 40px; line-height: 1.2; letter-spacing: -0.02em; margin: 0; color: var(--black-800); }
.h3 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 34px; line-height: 1.25; letter-spacing: -0.015em; margin: 0; color: var(--black-800); }
.h4 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 28px; line-height: 1.3; margin: 0; color: var(--black-800); }
.h5 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 24px; line-height: 1.3; margin: 0; color: var(--black-800); }
.h6 { font-family: "Inter", sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3; margin: 0; color: var(--black-800); }
.wordmark { font-family: "Inter", sans-serif; font-weight: 500; font-size: 20px; line-height: 1.3; color: var(--black-800); }
.text-lg { font-size: 18px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.5; }
.text-sm { font-size: 14px; line-height: 1.4; }
.text-xs { font-size: 12px; line-height: 1.4; }
.muted { color: var(--black-600); }
.secondary { color: var(--black-700); }
.brand { color: var(--gold-primary); }
.center { text-align: left; }

/* Skip + official top bar */
.skip-link {
  position: absolute;
  left: 100px;
  top: -40px;
  z-index: 20;
  background: var(--gold-primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  font-size: 12px;
}
.skip-link:focus { top: 0; box-shadow: none; }

.topbar {
  height: 40px;
  background: var(--black-900);
  color: var(--black-50);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}
.topbar-left { display: flex; align-items: center; gap: 24px; }
.topbar a.skip-inline {
  color: var(--black-50);
  opacity: 0.8;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 12px;
}
.topbar a.skip-inline:hover { opacity: 1; }
.official { font-size: 12px; line-height: 1.4; color: var(--black-50); margin: 0; }
.lang { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.lang a {
  color: var(--black-50);
  text-decoration: none;
  font-weight: 400;
}
.lang a[aria-current="true"] { font-weight: 700; opacity: 1; }
.lang a:not([aria-current="true"]) { opacity: 0.6; }
.lang .sep { opacity: 0.6; }

/* Logo row + nav */
.logo-row {
  height: 72px;
  background: var(--white);
  display: flex;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.navbar {
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--black-100);
  display: flex;
  align-items: stretch;
}
.navbar .container {
  display: flex;
  align-items: stretch;
  gap: 32px;
}
.nav-link {
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: var(--black-800);
  font-size: 16px;
  padding: 0 0 0 0;
  height: 100%;
}
.nav-link:hover { color: var(--gold-700); }
.nav-link[aria-current="page"] { color: var(--black-800); font-weight: 500; }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gold-primary);
  border-radius: 2px 2px 0 0;
}

/* Main + footer */
main#main {
  flex: 1 0 auto;
  padding: 48px 0 64px;
}
.footer {
  height: 88px;
  background: var(--black-900);
  color: var(--black-50);
  display: flex;
  align-items: center;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--black-50); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--black-50);
  text-decoration: none;
  font-size: 14px;
}
.footer-links a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-lg { height: 48px; }
.btn-primary { background: var(--gold-primary); color: var(--white); border-color: var(--gold-primary); }
.btn-primary:hover { background: var(--gold-700); border-color: var(--gold-700); color: var(--white); }
.btn-primary:disabled, .btn-primary.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn-outline { background: var(--white); color: var(--black-800); border-color: var(--black-200); }
.btn-outline:hover { background: var(--black-50); color: var(--black-800); }
.btn-link {
  height: auto;
  padding: 0;
  border: none;
  background: none;
  color: var(--gold-primary);
  font-weight: 500;
  box-shadow: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-link:focus-visible { box-shadow: var(--focus); border-radius: 4px; }

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin-bottom: 32px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black-600);
  white-space: nowrap;
}
.step.is-current {
  height: 28px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--gold-primary);
  color: var(--white);
  font-weight: 500;
}
.step.is-done { color: var(--gold-primary); font-weight: 500; }
.step-check {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.step-line {
  flex: 1 1 24px;
  height: 2px;
  background: var(--black-200);
  min-width: 16px;
}

/* Cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.choice-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--black-200);
  background: var(--white);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 140px;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.choice-card:hover { border-color: var(--gold-500); }
.choice-card.is-selected {
  border: 2px solid var(--gold-primary);
  background: var(--gold-50);
  padding: 23px;
  box-shadow: var(--shadow-soft);
}
.choice-card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gold-primary);
  font-weight: 500;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 24px;
  border: 1px solid var(--black-200);
  border-radius: var(--radius);
  background: var(--white);
  min-width: 0;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gold-50);
  border: 1px solid var(--gold-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card p { margin: 8px 0 0; color: var(--black-700); }

/* Price card */
.price-card {
  width: 320px;
  flex: 0 0 320px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-200);
  background: var(--gold-50);
  align-self: flex-start;
}
.price-card h2, .price-card .h5 { margin-bottom: 16px; }
.price-lines { display: flex; flex-direction: column; gap: 8px; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--black-700);
}
.price-row span:last-child { white-space: nowrap; }
.price-divider {
  height: 1px;
  background: var(--gold-200);
  margin: 16px 0;
  border: 0;
}
.price-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--gold-primary);
}
.price-hint { margin: 12px 0 0; font-size: 14px; line-height: 1.4; color: var(--black-600); }

/* Layouts */
.page-title { margin: 0 0 8px; }
.page-help { margin: 0 0 32px; color: var(--black-600); }
.split {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.split-main { flex: 1 1 auto; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.group { display: flex; flex-direction: column; gap: 16px; }
.option-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* Radio + checkbox */
.radio, .check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.5;
  color: var(--black-800);
  user-select: none;
}
.radio input, .check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.radio .box, .check .box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.radio .box {
  border-radius: 999px;
  border: 1px solid var(--black-200);
}
.radio input:checked + .box {
  border: 2px solid var(--gold-primary);
}
.radio input:checked + .box::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold-primary);
}
.check .box {
  border-radius: 4px;
  border: 1px solid var(--black-200);
}
.check input:checked + .box {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
}
.check .box svg { display: none; }
.check input:checked + .box svg { display: block; }
.check .price-add { color: var(--black-600); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.field label { font-size: 16px; line-height: 1.5; color: var(--black-800); }
.field input, .field textarea {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--black-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black-800);
  font-size: 16px;
  line-height: 1.5;
}
.field input::placeholder, .field textarea::placeholder { color: var(--black-600); }
.field textarea { height: 80px; padding: 12px 16px; resize: none; }
.field.is-error input { border: 2px solid var(--red-700); }
.field .helper { font-size: 14px; line-height: 1.4; color: var(--black-600); margin: 0; }
.field.is-error .helper { color: var(--red-700); }
.form-row { display: flex; gap: 24px; }
.form-row .field { flex: 1 1 0; min-width: 0; }

/* Alerts */
.alert-success {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--green-50);
  color: var(--green-700);
}
.alert-success .h5 { color: var(--green-700); }

/* Home */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 40px 56px;
  min-height: 420px;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 520px 420px at 78% 50%, rgba(230, 215, 162, 0.55), transparent 70%),
    linear-gradient(180deg, var(--gold-50) 0%, #FBF8F0 100%);
  border: 1px solid var(--gold-200);
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-copy { flex: 1 1 560px; max-width: 620px; min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gold-700);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold-500);
}
.hero-copy .h2 { margin-bottom: 16px; }
.hero-copy .lead { margin: 0 0 32px; color: var(--black-700); max-width: 640px; }
.hero-actions { display: flex; gap: 16px; align-items: center; }
.hero-art {
  flex: 0 0 400px;
  width: 400px;
  height: 400px;
  position: relative;
}
.hero-art .pizza-svg { width: 400px; height: 400px; }

/* Toppings */
.toppings-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.preview-col { flex: 0 0 400px; width: 400px; }
.preview-col .caption { margin: 12px 0 0; text-align: center; color: var(--black-600); }
.topping-groups { flex: 1 1 360px; min-width: 0; max-width: 360px; display: flex; flex-direction: column; gap: 24px; }
.topping-list { display: flex; flex-direction: column; gap: 12px; }
.allergen { margin: 0; color: var(--black-700); }

/* Review */
.review-layout { display: flex; align-items: flex-start; gap: 40px; }
.review-preview { flex: 0 0 280px; width: 280px; }
.review-preview .pizza-svg { width: 280px; height: 280px; }
.review-right { flex: 1 1 auto; min-width: 0; }
.summary-card {
  border: 1px solid var(--black-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}
.summary-row + .summary-row { border-top: 1px solid var(--black-100); }
.summary-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.summary-right { display: flex; align-items: center; gap: 24px; flex: 0 0 auto; }
.extras-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}
.extras { display: flex; flex-direction: column; gap: 12px; }
.grand-total {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  color: var(--gold-primary);
  margin: 0;
  white-space: nowrap;
}

/* Confirmation */
.confirm-block { display: flex; flex-direction: column; gap: 32px; max-width: 800px; }
.order-kicker { margin: 0 0 4px; color: var(--black-600); }
.confirm-summary { display: flex; flex-direction: column; gap: 8px; }
.confirm-summary p { margin: 0; }
.confirm-actions { display: flex; gap: 16px; }

.legal { margin: 8px 0 0; color: var(--black-600); }

/* Pizza illustration helpers */
.pizza-wrap { position: relative; }

.confirm-block { max-width: none; }
.alert-success { width: 100%; }
.confirm-split { display: flex; align-items: flex-start; gap: 48px; }
.confirm-split .confirm-copy { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.ticket {
  flex: 0 0 360px;
  width: 360px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-200);
  background: var(--gold-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ticket .pizza-svg { width: 240px; height: 240px; }
.ticket-meta { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.ticket-meta p { margin: 0; }
