/* Summit Grill — premium dark theme */
:root {
  --bg: #0c0a09;
  --surface: #1c1917;
  --surface-elevated: #292524;
  --text: #fafaf9;
  --muted: #a8a29e;
  --accent: #ea580c;
  --accent-hot: #f97316;
  --accent-dark: #c2410c;
  --border: #3f3f46;
  --radius: 14px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --display: "Libre Baskerville", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Return to agency — sticky, top-left */
.agency-back-bar {
  position: sticky;
  top: 0;
  z-index: 300;
  background: #0a0a0a;
  color: #e7e5e4;
  text-align: left;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(234, 88, 12, 0.35);
}

.agency-back-bar a {
  color: #fdba74;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.agency-back-bar a:hover {
  color: #ffedd5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--surface-elevated);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.topbar a {
  color: var(--accent-hot);
  font-weight: 700;
}

/* Header */
.sg-header {
  position: sticky;
  top: 2.75rem;
  z-index: 40;
  background: rgba(12, 10, 9, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.sg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.sg-logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.sg-logo span {
  color: var(--accent);
}

.sg-nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
}

.sg-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.sg-nav a {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
}

.sg-nav a:hover,
.sg-nav a[aria-current="page"] {
  color: #fff;
}

.sg-nav a.nav-order-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: 999px;
  font-weight: 800 !important;
  box-shadow: 0 4px 22px rgba(234, 88, 12, 0.45);
}

.sg-nav a.nav-order-cta:hover {
  color: #fff !important;
  filter: brightness(1.08);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px dashed var(--accent);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

/* Hero */
.hero-sg {
  padding: clamp(2.75rem, 6vw, 4.25rem) 0;
  background: radial-gradient(ellipse 90% 55% at 50% -15%, rgba(234, 88, 12, 0.22), transparent 52%),
    linear-gradient(180deg, #0c0a09 0%, #1c1917 100%);
  position: relative;
  overflow: hidden;
}

.hero-sg-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 28px 70px -40px rgba(28, 25, 23, 0.35);
}

.hero-sg-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}

.hero-sg-media:hover img {
  transform: scale(1.04);
}

.menu-hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  max-height: 220px;
}

.menu-hero-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-sg-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .hero-sg-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-sg h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero-sg p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40ch;
  margin: 0 0 1.5rem;
}

.hero-hours {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-hours strong {
  color: var(--text);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}

.hero-panel h2 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin: 0 0 1rem;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
}

.feature-list svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Sections */
section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

/* Menu blocks */
.menu-category {
  margin-bottom: 2.5rem;
}

.menu-category h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 0.35rem;
  margin: 0 0 1.25rem;
}

.menu-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-item:hover {
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: 0 12px 36px -18px rgba(0, 0, 0, 0.5);
}

.menu-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.menu-item p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.menu-price {
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

/* Order page */
.order-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.order-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-thumb {
  width: 76px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.order-item-info {
  min-width: 0;
}

.order-item-info strong {
  display: block;
  font-size: 1rem;
}

.order-item-buy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 520px) {
  .order-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .order-thumb {
    width: 64px;
    height: 54px;
    grid-row: 1 / span 2;
  }

  .order-item-buy {
    grid-column: 2;
    justify-content: flex-start;
  }
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-row button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.qty-row button:hover {
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.cart-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-summary {
  max-width: 360px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.cart-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border);
}

/* Checkout / forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-grid.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  background: var(--surface-elevated);
  color: var(--text);
}

select option {
  background: var(--surface);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(194, 65, 12, 0.35);
  outline-offset: 1px;
}

.sg-contact-photo,
.checkout-hero-thumb {
  margin-bottom: 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -28px rgba(28, 25, 23, 0.25);
}

.sg-contact-photo img,
.checkout-hero-thumb img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.checkout-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

.card-mock {
  background: linear-gradient(135deg, #1c1917, #44403c);
  color: #fafaf9;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.card-mock label {
  color: #d6d3d1;
}

.card-mock input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.card-mock input::placeholder {
  color: #a8a29e;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 280px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.sg-footer {
  background: var(--text);
  color: #e7e5e4;
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.sg-footer a {
  color: #fdba74;
}

.sg-footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 720px) {
  .sg-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.sg-footer h3 {
  font-family: var(--display);
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.sg-footer p,
.sg-footer li {
  font-size: 0.9rem;
  color: #a8a29e;
  margin: 0 0 0.5rem;
}

.sg-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notice {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(234, 88, 12, 0.12);
  border: 1px solid rgba(234, 88, 12, 0.35);
  color: #fdba74;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.success-banner {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(22, 101, 52, 0.35);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #bbf7d0;
  font-weight: 700;
  margin-bottom: 1rem;
}

.success-banner.visible {
  display: block;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.featured-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .featured-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.featured-card.featured-popular {
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.2);
}

.featured-ribbon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #fff;
}

.featured-card:hover {
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.55);
  transform: translateY(-2px);
}

.featured-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-card:hover img {
  transform: scale(1.05);
}

.featured-card .body {
  padding: 1rem 1.15rem 1.2rem;
}

.featured-card h4 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.featured-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.review-card .stars {
  color: #ea580c;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.65rem;
}

.review-card p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
}

.review-card footer {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

/* Third review uses an empty .stars node so star glyphs live in CSS only */
.review-card:nth-child(3) .stars:empty {
  font-size: 0;
  line-height: 0;
}

.review-card:nth-child(3) .stars:empty::before {
  content: "★★★★★";
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #ea580c;
  line-height: 1.2;
}

.menu-item-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 560px) {
  .menu-item-row {
    grid-template-columns: 88px 1fr;
  }

  .menu-item-row .menu-price {
    grid-column: 2;
    justify-self: start;
  }
}

.menu-thumb {
  width: 88px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
}

@media (max-width: 768px) {
  .sg-nav-toggle {
    display: grid;
    place-items: center;
  }

  .sg-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 8.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  }

  .sg-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .sg-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .sg-nav a {
    color: var(--muted);
  }

  .sg-nav a.nav-order-cta {
    text-align: center;
    justify-content: center;
  }

  .sg-nav .btn {
    width: 100%;
    justify-content: center;
  }
}
