/* =========================================================
   DANNY'S GRILL LUTONG BAHAY
   GLOBAL WEBSITE STYLESHEET
========================================================= */

:root {
  --primary-red: #c9141e;
  --primary-red-hover: #ad1019;
  --deep-red: #8f0d14;

  --light-red: #fdebec;
  --soft-red: #f8d7d9;
  --pale-red: #fff3f3;

  --cream: #fffaf6;
  --white: #ffffff;

  --charcoal: #252525;
  --dark: #171717;
  --muted: #6d6767;

  --border: #efc4c7;
  --soft-border: #f4dddd;

  --success: #26834a;
  --warning: #c27803;
  --danger: #b4232c;

  --shadow-small:
    0 6px 18px rgba(82, 24, 28, 0.08);

  --shadow-medium:
    0 14px 34px rgba(82, 24, 28, 0.12);

  --shadow-large:
    0 24px 60px rgba(82, 24, 28, 0.16);

  --radius-small: 10px;
  --radius-medium: 18px;
  --radius-large: 28px;
  --radius-pill: 999px;

  --container-width: 1240px;

  --transition:
    180ms ease;
}

/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;

  color: var(--charcoal);

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  background:
    linear-gradient(
      180deg,
      var(--cream) 0%,
      #fffefe 48%,
      var(--pale-red) 100%
    );

  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.container {
  width:
    min(
      var(--container-width),
      calc(100% - 40px)
    );

  margin-inline: auto;
}

/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline:
    3px solid rgba(201, 20, 30, 0.25);

  outline-offset: 3px;
}

/* =========================================================
   TOP INFORMATION BAR
========================================================= */

.top-bar {
  min-height: 38px;
  padding: 8px 0;

  color: var(--deep-red);
  background: var(--light-red);

  border-bottom:
    1px solid var(--soft-border);

  font-size: 13px;
  font-weight: 700;
}

.top-bar-content {
  width:
    min(
      var(--container-width),
      calc(100% - 40px)
    );

  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.top-bar-group {
  display: flex;
  align-items: center;
  gap: 22px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-bar-announcement {
  color: var(--primary-red);
  font-weight: 800;
}

/* =========================================================
   NAVIGATION
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  background:
    rgba(255, 255, 255, 0.96);

  border-bottom:
    1px solid rgba(239, 196, 199, 0.8);

  backdrop-filter: blur(12px);

  box-shadow:
    0 4px 18px rgba(78, 23, 26, 0.05);
}

.navbar {
  width:
    min(
      var(--container-width),
      calc(100% - 40px)
    );

  min-height: 82px;
  margin-inline: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 104px;
  height: 70px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  z-index: 1;

  padding: 12px 18px;

  border-radius: 14px;

  color: var(--charcoal);
  background: transparent;

  font-size: 14px;
  font-weight: 800;

  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-link::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: -1;

  border-radius: 14px;

  background: var(--light-red);

  opacity: 0;

  transform: scale(0.82);

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-link:hover {
  color: var(--primary-red);
}

.nav-link:hover::before {
  opacity: 0.65;
  transform: scale(1);
}

.nav-link.active {
  color: var(--primary-red);

  transform: translateY(-1px);
}

.nav-link.active::before {
  opacity: 1;

  transform: scale(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-button {
  position: relative;

  width: 44px;
  height: 44px;

  border:
    1px solid var(--border);

  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--primary-red);
  background: var(--white);

  transition:
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.cart-button:hover {
  color: var(--white);
  background: var(--primary-red);

  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;

  min-width: 20px;
  height: 20px;
  padding: 0 5px;

  border:
    2px solid var(--white);

  border-radius: var(--radius-pill);

  display: grid;
  place-items: center;

  color: var(--white);
  background: var(--primary-red);

  font-size: 11px;
  font-weight: 900;
}

.mobile-menu-button {
  display: none;

  width: 44px;
  height: 44px;

  border:
    1px solid var(--border);

  border-radius: 12px;

  color: var(--primary-red);
  background: var(--white);

  font-size: 22px;
}

/* =========================================================
   BUTTONS
========================================================= */

.button,
.primary-button,
.secondary-button,
.outline-button {
  min-height: 48px;
  padding: 0 24px;

  border:
    2px solid transparent;

  border-radius: var(--radius-pill);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  cursor: pointer;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.primary-button,
.button-primary {
  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--primary-red),
      var(--deep-red)
    );

  box-shadow:
    0 8px 18px rgba(201, 20, 30, 0.2);
}

.primary-button:hover,
.button-primary:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 24px rgba(201, 20, 30, 0.28);
}

.secondary-button {
  color: var(--primary-red);
  background: var(--light-red);

  border-color: var(--soft-red);
}

.secondary-button:hover {
  color: var(--white);
  background: var(--primary-red);

  transform: translateY(-2px);
}

.outline-button,
.button-outline {
  color: var(--primary-red);
  background: transparent;

  border-color: var(--primary-red);
}

.outline-button:hover,
.button-outline:hover {
  color: var(--white);
  background: var(--primary-red);

  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: 0 18px;

  font-size: 13px;
}

.button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.outline-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero {
  position: relative;

  min-height: 640px;

  padding:
    72px 0 74px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 84% 25%,
      rgba(248, 215, 217, 0.8),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      var(--cream) 0%,
      var(--light-red) 100%
    );
}

.hero::before {
  content: "";

  position: absolute;
  top: -160px;
  right: -120px;

  width: 480px;
  height: 480px;

  border-radius: 50%;

  background:
    rgba(201, 20, 30, 0.05);
}

.hero::after {
  content: "";

  position: absolute;
  bottom: -180px;
  left: -160px;

  width: 420px;
  height: 420px;

  border:
    70px solid rgba(201, 20, 30, 0.035);

  border-radius: 50%;
}

.hero-container {
  position: relative;
  z-index: 2;

  width:
    min(
      var(--container-width),
      calc(100% - 40px)
    );

  margin-inline: auto;

  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(420px, 1.05fr);

  align-items: center;
  gap: 70px;
}

.hero-content {
  max-width: 650px;
}

.hero-eyebrow {
  width: fit-content;

  margin-bottom: 18px;
  padding: 8px 16px;

  border:
    1px solid var(--soft-red);

  border-radius: var(--radius-pill);

  color: var(--primary-red);
  background: rgba(255, 255, 255, 0.8);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 20px;

  color: var(--charcoal);

  font-size:
    clamp(48px, 6.3vw, 88px);

  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-title span {
  color: var(--primary-red);
}

.hero-description {
  max-width: 580px;

  margin-bottom: 30px;

  color: var(--muted);

  font-size:
    clamp(18px, 1.7vw, 23px);

  font-weight: 600;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;

  min-height: 470px;

  display: grid;
  place-items: center;
}

.hero-image-background {
  position: absolute;

  width: 92%;
  height: 80%;

  border-radius:
    45% 55% 42% 58% /
    53% 42% 58% 47%;

  background:
    linear-gradient(
      145deg,
      var(--soft-red),
      var(--primary-red)
    );

  transform: rotate(-4deg);

  box-shadow:
    0 30px 70px rgba(143, 13, 20, 0.18);
}

.hero-image-wrapper img {
  position: relative;
  z-index: 2;

  width: min(100%, 720px);
  max-height: 520px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 22px 22px rgba(54, 20, 20, 0.18)
    );
}

.hero-badge {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 32px;

  max-width: 190px;

  padding: 15px 18px;

  border:
    1px solid rgba(239, 196, 199, 0.9);

  border-radius: 18px;

  color: var(--charcoal);
  background: rgba(255, 255, 255, 0.94);

  box-shadow: var(--shadow-medium);

  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

/* =========================================================
   GENERAL SECTIONS
========================================================= */

.section {
  padding: 86px 0;
}

.section-light {
  background: var(--white);
}

.section-soft-red {
  background:
    linear-gradient(
      180deg,
      var(--pale-red),
      var(--light-red)
    );
}

.section-header {
  max-width: 720px;
  margin: 0 auto 42px;

  text-align: center;
}

.section-label {
  margin-bottom: 10px;

  color: var(--primary-red);

  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 14px;

  color: var(--charcoal);

  font-size:
    clamp(34px, 4.4vw, 54px);

  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.section-title span {
  color: var(--primary-red);
}

.section-description {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.65;
}

/* =========================================================
   CATEGORY SECTION
========================================================= */

.category-grid {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 18px;
}

.category-card {
  min-height: 150px;
  padding: 22px 16px;

  border:
    1px solid var(--soft-border);

  border-radius: var(--radius-medium);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  color: var(--charcoal);
  background: var(--white);

  box-shadow: var(--shadow-small);

  text-align: center;

  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary-red);

  background:
    linear-gradient(
      180deg,
      var(--white),
      var(--light-red)
    );

  transform: translateY(-5px);

  box-shadow: var(--shadow-medium);
}

.category-icon {
  width: 58px;
  height: 58px;

  border-radius: 18px;

  display: grid;
  place-items: center;

  color: var(--primary-red);
  background: var(--light-red);

  font-size: 28px;

  transition:
    color var(--transition),
    background var(--transition);
}

.category-card:hover .category-icon,
.category-card.active .category-icon {
  color: var(--white);
  background: var(--primary-red);
}

.category-name {
  font-size: 15px;
  font-weight: 900;
}

/* =========================================================
   MENU SECTION
========================================================= */

.menu-toolbar {
  margin-bottom: 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.menu-search {
  width: min(360px, 100%);
  position: relative;
}

.menu-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px 0 45px;

  border:
    1px solid var(--border);

  border-radius: var(--radius-pill);

  color: var(--charcoal);
  background: var(--white);

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.menu-search input:focus {
  border-color: var(--primary-red);

  box-shadow:
    0 0 0 4px rgba(201, 20, 30, 0.08);
}

.menu-search-icon {
  position: absolute;
  top: 50%;
  left: 17px;

  color: var(--primary-red);

  transform: translateY(-50%);
}

.menu-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 24px;
}

.menu-card {
  position: relative;

  border:
    1px solid var(--soft-border);

  border-radius: var(--radius-large);

  background: var(--white);

  box-shadow: var(--shadow-small);

  overflow: hidden;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.menu-card:hover {
  border-color: var(--border);

  transform: translateY(-6px);

  box-shadow: var(--shadow-medium);
}

.menu-card-image {
  position: relative;

  height: 210px;

  background:
    linear-gradient(
      145deg,
      var(--pale-red),
      var(--light-red)
    );

  overflow: hidden;
}

.menu-card-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 260ms ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.04);
}

.menu-availability {
  position: absolute;
  top: 14px;
  left: 14px;

  padding: 7px 12px;

  border-radius: var(--radius-pill);

  color: var(--success);
  background: rgba(255, 255, 255, 0.95);

  box-shadow: var(--shadow-small);

  font-size: 12px;
  font-weight: 900;
}

.menu-availability.unavailable {
  color: var(--danger);
}

.menu-card-content {
  padding: 22px;
}

.menu-category {
  margin-bottom: 8px;

  color: var(--primary-red);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-name {
  min-height: 52px;
  margin-bottom: 14px;

  color: var(--charcoal);

  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.menu-price {
  color: var(--primary-red);

  font-size: 24px;
  font-weight: 900;
}

.add-order-button {
  width: 44px;
  height: 44px;

  border: 0;
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--white);
  background: var(--primary-red);

  box-shadow:
    0 7px 16px rgba(201, 20, 30, 0.2);

  font-size: 22px;

  transition:
    transform var(--transition),
    background var(--transition);
}

.add-order-button:hover {
  background: var(--deep-red);
  transform: scale(1.07);
}

.add-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.menu-section-action {
  margin-top: 42px;

  display: flex;
  justify-content: center;
}

.empty-message,
.loading-message,
.error-message {
  grid-column: 1 / -1;

  padding: 38px;

  border:
    1px dashed var(--border);

  border-radius: var(--radius-medium);

  color: var(--muted);
  background: var(--white);

  text-align: center;
  font-weight: 700;
}

/* =========================================================
   CALL TO ACTION
========================================================= */

.order-cta {
  padding: 40px 0 88px;

  background: var(--white);
}

.cta-card {
  position: relative;

  min-height: 350px;
  padding:
    54px
    clamp(30px, 6vw, 74px);

  border:
    1px solid var(--soft-red);

  border-radius: 34px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 0.8fr);

  align-items: center;
  gap: 44px;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 255, 255, 0.85),
      transparent 36%
    ),
    linear-gradient(
      135deg,
      var(--light-red),
      var(--soft-red)
    );

  box-shadow: var(--shadow-medium);

  overflow: hidden;
}

.cta-card::before {
  content: "";

  position: absolute;
  top: -100px;
  right: -100px;

  width: 300px;
  height: 300px;

  border:
    50px solid rgba(201, 20, 30, 0.06);

  border-radius: 50%;
}

.cta-content {
  position: relative;
  z-index: 2;

  max-width: 640px;
}

.cta-title {
  margin-bottom: 16px;

  color: var(--charcoal);

  font-size:
    clamp(36px, 5vw, 62px);

  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cta-description {
  max-width: 590px;

  margin-bottom: 28px;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-image {
  position: relative;
  z-index: 2;

  min-height: 240px;

  display: grid;
  place-items: center;
}

.cta-image img {
  width: 100%;
  max-height: 300px;

  object-fit: contain;

  filter:
    drop-shadow(
      0 20px 20px rgba(74, 25, 27, 0.14)
    );
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  color: #f9ecec;

  background:
    linear-gradient(
      145deg,
      #481013,
      #761017
    );
}

.footer-main {
  padding: 66px 0 48px;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1.4fr 0.8fr 1fr 1fr;

  gap: 50px;
}

.footer-brand img {
  width: 120px;
  margin-bottom: 18px;
}

.footer-description {
  max-width: 340px;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.65;
}

.footer-heading {
  margin-bottom: 20px;

  color: var(--white);

  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-link {
  color:
    rgba(255, 255, 255, 0.72);

  font-size: 14px;

  transition:
    color var(--transition),
    transform var(--transition);
}

.footer-link:hover {
  color: var(--white);

  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color:
    rgba(255, 255, 255, 0.72);

  font-size: 14px;
  line-height: 1.5;
}

.footer-socials {
  margin-top: 22px;

  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;

  border:
    1px solid rgba(255, 255, 255, 0.18);

  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--white);
  background:
    rgba(255, 255, 255, 0.07);

  transition:
    background var(--transition),
    transform var(--transition);
}

.social-link:hover {
  background: var(--primary-red);

  transform: translateY(-3px);
}

.footer-bottom {
  min-height: 62px;
  padding: 18px 0;

  border-top:
    1px solid rgba(255, 255, 255, 0.12);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  color:
    rgba(255, 255, 255, 0.6);

  font-size: 13px;
}

/* =========================================================
   FLOATING AI ASSISTANT
========================================================= */

.ai-floating-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;

  min-width: 58px;
  height: 58px;
  padding: 0 20px;

  border:
    3px solid var(--white);

  border-radius: var(--radius-pill);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--primary-red),
      var(--deep-red)
    );

  box-shadow:
    0 14px 32px rgba(143, 13, 20, 0.32);

  font-weight: 900;

  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.ai-floating-button:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 38px rgba(143, 13, 20, 0.38);
}

.ai-floating-icon {
  font-size: 24px;
}

.ai-floating-label {
  font-size: 13px;
}

/* =========================================================
   CHATBOT
========================================================= */

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 94px;
  z-index: 120;

  width:
    min(
      410px,
      calc(100vw - 32px)
    );

  height: min(620px, calc(100vh - 130px));

  border:
    1px solid var(--soft-red);

  border-radius: 26px;

  display: flex;
  flex-direction: column;

  background: var(--white);

  box-shadow: var(--shadow-large);

  overflow: hidden;

  opacity: 0;
  pointer-events: none;

  transform:
    translateY(24px)
    scale(0.96);

  transform-origin: bottom right;

  transition:
    opacity 200ms ease,
    transform 200ms ease;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;

  transform:
    translateY(0)
    scale(1);
}

.chat-header {
  min-height: 78px;
  padding: 15px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  color: var(--white);

  background:
    linear-gradient(
      135deg,
      var(--primary-red),
      var(--deep-red)
    );
}

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

.chat-avatar {
  width: 44px;
  height: 44px;

  border:
    2px solid rgba(255, 255, 255, 0.75);

  border-radius: 50%;

  display: grid;
  place-items: center;

  background:
    rgba(255, 255, 255, 0.14);

  font-size: 22px;
}

.chat-title {
  display: block;

  font-size: 15px;
  font-weight: 900;
}

.chat-status {
  display: block;

  margin-top: 3px;

  color:
    rgba(255, 255, 255, 0.82);

  font-size: 12px;
}

.chat-close {
  width: 38px;
  height: 38px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--white);
  background:
    rgba(255, 255, 255, 0.14);

  font-size: 24px;
}

.chat-body {
  flex: 1;

  padding: 18px;

  overflow-y: auto;

  background:
    linear-gradient(
      180deg,
      #fffafa,
      var(--pale-red)
    );
}

.chat-message {
  width: fit-content;
  max-width: 82%;

  margin-bottom: 13px;
  padding: 12px 15px;

  border-radius: 17px;

  font-size: 14px;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

.chat-message.bot {
  border:
    1px solid var(--soft-border);

  color: var(--charcoal);
  background: var(--white);

  border-bottom-left-radius: 5px;
}

.chat-message.user {
  margin-left: auto;

  color: var(--white);
  background: var(--primary-red);

  border-bottom-right-radius: 5px;
}

.chat-options {
  margin-bottom: 14px;

  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-option-button {
  min-height: 38px;
  padding: 0 14px;

  border:
    1px solid var(--border);

  border-radius: var(--radius-pill);

  color: var(--primary-red);
  background: var(--white);

  font-size: 13px;
  font-weight: 800;

  transition:
    color var(--transition),
    background var(--transition);
}

.chat-option-button:hover {
  color: var(--white);
  background: var(--primary-red);
}

.chat-form {
  padding: 12px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  gap: 9px;

  background: var(--white);

  border-top:
    1px solid var(--soft-border);
}

.chat-input {
  min-width: 0;
  min-height: 46px;

  padding: 0 14px;

  border:
    1px solid var(--border);

  border-radius: 14px;

  color: var(--charcoal);
  background: var(--white);
}

.chat-send {
  min-width: 48px;
  height: 46px;
  padding: 0 15px;

  border: 0;
  border-radius: 14px;

  color: var(--white);
  background: var(--primary-red);

  font-weight: 900;
}

/* =========================================================
   ACCOUNT PAGES
========================================================= */

.account-page {
  min-height: 100vh;

  padding: 40px 20px;

  display: grid;
  place-items: center;

  background:
    radial-gradient(
      circle at top right,
      var(--soft-red),
      transparent 40%
    ),
    linear-gradient(
      135deg,
      var(--cream),
      var(--light-red)
    );
}

.account-layout {
  width:
    min(
      1000px,
      100%
    );

  min-height: 620px;

  border:
    1px solid var(--soft-border);

  border-radius: 30px;

  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(380px, 1fr);

  background: var(--white);

  box-shadow: var(--shadow-large);

  overflow: hidden;
}

.account-side {
  position: relative;

  padding: 50px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(201, 20, 30, 0.92),
      rgba(143, 13, 20, 0.96)
    );

  overflow: hidden;
}

.account-side::before {
  content: "";

  position: absolute;
  top: -100px;
  right: -100px;

  width: 300px;
  height: 300px;

  border:
    50px solid rgba(255, 255, 255, 0.07);

  border-radius: 50%;
}

.account-side img {
  position: relative;
  z-index: 2;

  width: 130px;
}

.account-side-content {
  position: relative;
  z-index: 2;
}

.account-side-title {
  margin-bottom: 16px;

  font-size:
    clamp(36px, 5vw, 58px);

  font-weight: 900;
  line-height: 1.05;
}

.account-side-description {
  color:
    rgba(255, 255, 255, 0.82);

  font-size: 17px;
  line-height: 1.6;
}

.account-form-wrapper {
  padding:
    50px
    clamp(30px, 5vw, 64px);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.account-heading {
  margin-bottom: 10px;

  color: var(--charcoal);

  font-size:
    clamp(32px, 4vw, 44px);

  font-weight: 900;
}

.account-subtitle {
  margin-bottom: 28px;

  color: var(--muted);
  line-height: 1.55;
}

.account-form {
  display: grid;
  gap: 17px;
}

.form-row {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-label {
  color: var(--charcoal);

  font-size: 13px;
  font-weight: 900;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;

  border:
    1px solid #dfc9cb;

  border-radius: 13px;

  color: var(--charcoal);
  background: var(--white);

  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.form-input,
.form-select {
  min-height: 48px;
  padding: 0 14px;
}

.form-textarea {
  min-height: 110px;
  padding: 13px 14px;

  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary-red);

  box-shadow:
    0 0 0 4px rgba(201, 20, 30, 0.08);

  outline: none;
}

.form-helper {
  color: var(--muted);

  font-size: 12px;
}

.form-message {
  min-height: 22px;

  margin: 2px 0;

  font-size: 13px;
  font-weight: 800;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

.account-submit {
  width: 100%;
  margin-top: 6px;
}

.account-switch {
  margin-top: 22px;

  color: var(--muted);

  text-align: center;
}

.account-switch a {
  color: var(--primary-red);
  font-weight: 900;
}

/* =========================================================
   GENERAL INNER PAGE HEADER
========================================================= */

.page-hero {
  padding: 62px 0;

  background:
    linear-gradient(
      135deg,
      var(--light-red),
      var(--pale-red)
    );

  border-bottom:
    1px solid var(--soft-border);
}

.page-hero-content {
  max-width: 760px;
}

.page-title {
  margin-bottom: 14px;

  color: var(--charcoal);

  font-size:
    clamp(42px, 6vw, 70px);

  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-description {
  margin-bottom: 0;

  color: var(--muted);

  font-size: 18px;
  line-height: 1.6;
}

/* =========================================================
   ORDERING PAGE
========================================================= */

.order-page {
  padding: 58px 0 90px;
}

.order-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    360px;

  align-items: start;
  gap: 30px;
}

.order-menu {
  min-width: 0;
}

.cart-panel {
  position: sticky;
  top: 106px;

  padding: 24px;

  border:
    1px solid var(--soft-border);

  border-radius: var(--radius-large);

  background: var(--white);

  box-shadow: var(--shadow-medium);
}

.cart-heading {
  margin-bottom: 20px;

  font-size: 25px;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  padding-bottom: 14px;

  border-bottom:
    1px solid var(--soft-border);

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  gap: 12px;
}

.cart-item-name {
  margin-bottom: 5px;

  font-size: 14px;
  font-weight: 900;
}

.cart-item-price {
  color: var(--primary-red);

  font-size: 13px;
  font-weight: 800;
}

.cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-button {
  width: 30px;
  height: 30px;

  border:
    1px solid var(--border);

  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--primary-red);
  background: var(--white);

  font-weight: 900;
}

.cart-summary {
  margin-top: 20px;

  display: grid;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;

  color: var(--muted);
}

.summary-row.total {
  padding-top: 14px;

  border-top:
    1px solid var(--border);

  color: var(--charcoal);

  font-size: 20px;
  font-weight: 900;
}

/* =========================================================
   CHECKOUT
========================================================= */

.checkout-section {
  padding: 70px 0 90px;
}

.checkout-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    380px;

  align-items: start;
  gap: 32px;
}

.checkout-card,
.order-summary-card {
  padding: 30px;

  border:
    1px solid var(--soft-border);

  border-radius: var(--radius-large);

  background: var(--white);

  box-shadow: var(--shadow-small);
}

.checkout-heading {
  margin-bottom: 24px;

  font-size: 27px;
  font-weight: 900;
}

.order-type-options {
  margin-bottom: 26px;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px;
}

.order-type-option {
  position: relative;
}

.order-type-option input {
  position: absolute;

  opacity: 0;
  pointer-events: none;
}

.order-type-label {
  min-height: 68px;
  padding: 14px;

  border:
    2px solid var(--soft-border);

  border-radius: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  color: var(--charcoal);
  background: var(--white);

  font-weight: 900;
  text-align: center;

  transition:
    color var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.order-type-option input:checked +
.order-type-label {
  color: var(--primary-red);
  background: var(--light-red);

  border-color: var(--primary-red);
}

.conditional-fields {
  display: none;
}

.conditional-fields.active {
  display: grid;
}

/* =========================================================
   RESERVATION PAGE
========================================================= */

.reservation-section {
  padding: 70px 0 90px;
}

.reservation-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.8fr)
    minmax(420px, 1fr);

  gap: 60px;
  align-items: start;
}

.reservation-information {
  padding-top: 20px;
}

.reservation-benefits {
  margin-top: 28px;

  display: grid;
  gap: 15px;
}

.reservation-benefit {
  display: flex;
  align-items: flex-start;
  gap: 13px;

  color: var(--muted);
  line-height: 1.5;
}

.reservation-benefit-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;

  border-radius: 12px;

  display: grid;
  place-items: center;

  color: var(--primary-red);
  background: var(--light-red);
}

.reservation-form-card {
  padding: 34px;

  border:
    1px solid var(--soft-border);

  border-radius: var(--radius-large);

  background: var(--white);

  box-shadow: var(--shadow-medium);
}

/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;

  padding: 20px;

  display: grid;
  place-items: center;

  background:
    rgba(28, 15, 16, 0.55);

  backdrop-filter: blur(5px);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width:
    min(
      520px,
      100%
    );

  max-height:
    calc(100vh - 40px);

  padding: 30px;

  border-radius: var(--radius-large);

  background: var(--white);

  box-shadow: var(--shadow-large);

  overflow-y: auto;

  transform:
    translateY(20px)
    scale(0.97);

  transition:
    transform var(--transition);
}

.modal-overlay.open .modal {
  transform:
    translateY(0)
    scale(1);
}

.modal-header {
  margin-bottom: 22px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal-title {
  margin-bottom: 0;

  font-size: 27px;
  font-weight: 900;
}

.modal-close {
  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 50%;

  display: grid;
  place-items: center;

  color: var(--primary-red);
  background: var(--light-red);

  font-size: 22px;
}

/* =========================================================
   STATUS BADGES
========================================================= */

.status-badge {
  width: fit-content;

  padding: 6px 11px;

  border-radius: var(--radius-pill);

  font-size: 12px;
  font-weight: 900;
}

.status-badge.success {
  color: var(--success);
  background: #e9f7ee;
}

.status-badge.warning {
  color: var(--warning);
  background: #fff4df;
}

.status-badge.danger {
  color: var(--danger);
  background: #fdebed;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1080px) {
  .nav-links {
    gap: 18px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 35px;

    text-align: center;
  }

  .hero-content {
    margin-inline: auto;
  }

  .hero-eyebrow {
    margin-inline: auto;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image-wrapper {
    min-height: 400px;
  }

  .hero-badge {
    right: 8%;
  }

  .category-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .menu-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .order-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

/* =========================================================
   MOBILE NAVIGATION
========================================================= */

@media (max-width: 850px) {
  .top-bar-group:last-child {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 121px;
    right: 18px;
    left: 18px;
    z-index: 80;

    padding: 18px;

    border:
      1px solid var(--soft-border);

    border-radius: 20px;

    display: grid;
    gap: 4px;

    background: var(--white);

    box-shadow: var(--shadow-large);

    opacity: 0;
    pointer-events: none;

    transform: translateY(-12px);

    transition:
      opacity var(--transition),
      transform var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;

    transform: translateY(0);
  }

  .nav-link {
    padding: 14px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--light-red);
  }

  .nav-actions .outline-button {
    display: none;
  }

  .cta-card {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .cta-actions {
    justify-content: center;
  }

  .reservation-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-side {
    min-height: 280px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {
  .container {
    width:
      min(
        100% - 28px,
        var(--container-width)
      );
  }

  .top-bar-content {
    width:
      calc(100% - 28px);

    justify-content: center;
  }

  .top-bar-group {
    justify-content: center;
  }

  .top-bar-item:nth-child(2) {
    display: none;
  }

  .navbar {
    width:
      calc(100% - 28px);

    min-height: 72px;
  }

  .brand img {
    width: 88px;
    height: 58px;
  }

  .nav-links {
    top: 107px;
    right: 14px;
    left: 14px;
  }

  .nav-actions {
    gap: 7px;
  }

  .cart-button,
  .mobile-menu-button {
    width: 41px;
    height: 41px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 56px;
  }

  .hero-container {
    width:
      calc(100% - 30px);
  }

  .hero-title {
    font-size:
      clamp(42px, 14vw, 63px);
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .primary-button,
  .hero-actions .outline-button {
    width: 100%;
  }

  .hero-image-wrapper {
    min-height: 290px;
  }

  .hero-image-wrapper img {
    max-height: 330px;
  }

  .hero-badge {
    display: none;
  }

  .section {
    padding: 66px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size:
      clamp(32px, 10vw, 43px);
  }

  .category-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 13px;
  }

  .category-card {
    min-height: 132px;
    padding: 18px 10px;
  }

  .category-icon {
    width: 52px;
    height: 52px;

    font-size: 24px;
  }

  .menu-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-search {
    width: 100%;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card-image {
    height: 230px;
  }

  .cta-card {
    padding: 38px 22px;

    border-radius: 25px;
  }

  .cta-title {
    font-size:
      clamp(34px, 10vw, 46px);
  }

  .cta-actions {
    display: grid;
  }

  .cta-actions .primary-button,
  .cta-actions .outline-button {
    width: 100%;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-floating-button {
    right: 16px;
    bottom: 16px;

    min-width: 56px;
    padding: 0 16px;
  }

  .ai-floating-label {
    display: none;
  }

  .chat-panel {
    right: 12px;
    bottom: 84px;

    width:
      calc(100vw - 24px);

    height:
      min(
        590px,
        calc(100vh - 105px)
      );

    border-radius: 22px;
  }

  .account-page {
    padding: 18px 14px;
  }

  .account-layout {
    border-radius: 24px;
  }

  .account-side {
    padding: 34px 24px;
  }

  .account-form-wrapper {
    padding: 34px 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 46px 0;
  }

  .page-title {
    font-size:
      clamp(38px, 12vw, 52px);
  }

  .order-page,
  .checkout-section,
  .reservation-section {
    padding: 44px 0 65px;
  }

  .checkout-card,
  .order-summary-card,
  .reservation-form-card,
  .cart-panel {
    padding: 22px;
  }

  .order-type-options {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {
  .top-bar {
    font-size: 11px;
  }

  .hero-title {
    font-size: 40px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 112px;

    flex-direction: row;
    justify-content: flex-start;

    padding: 16px 20px;
    text-align: left;
  }

  .menu-card-content {
    padding: 19px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-send {
    width: 100%;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration:
      0.01ms !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;
  }
}