:root {
  --green: #0e2a1f;
  --green-soft: #183f30;
  --gold: #c8a05a;
  --cream: #f6f4ee;
  --white: #ffffff;
  --black: #222222;
  --muted: #70776f;
  --line: rgba(14, 42, 31, 0.12);
  --shadow: 0 24px 70px rgba(14, 42, 31, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

a,
button {
  color: inherit;
}

a {
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(246, 244, 238, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 120px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--green);
  font-weight: 800;
  font-size: 0.94rem;
}

.nav-order-link {
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.cart-button,
.button,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.cart-button {
  gap: 10px;
  padding: 0 18px;
  background: var(--green);
  color: var(--white);
}

.cart-button strong {
  color: var(--gold);
}

.button {
  padding: 0 24px;
}

.button-primary {
  background: var(--gold);
  color: var(--green);
  box-shadow: 0 14px 28px rgba(200, 160, 90, 0.26);
}

.button-ghost {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
}

.button-light {
  background: var(--white);
  color: var(--green);
}

.cart-button:hover,
.button:hover,
.icon-link:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(44px, 7vw, 86px) clamp(18px, 6vw, 82px) clamp(32px, 5vw, 72px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero-logo {
  width: clamp(130px, 16vw, 220px);
  margin-bottom: clamp(28px, 5vw, 62px);
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--green);
  font-size: clamp(4.1rem, 10vw, 9.4rem);
  line-height: 0.84;
  letter-spacing: 0;
}

h1 span {
  display: block;
  opacity: 0;
  transform: translateY(34px);
  animation: fadeUp 950ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

h1 span:nth-child(2) {
  animation-delay: 160ms;
}

h1 span:nth-child(3) {
  animation-delay: 320ms;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 5vw, 54px);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 800ms 540ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.hero-rotating-text {
  min-height: 1.4em;
  margin: clamp(18px, 3vw, 30px) 0 0;
  color: var(--gold);
  font-size: clamp(1.05rem, 2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: 0;
  transition: opacity 400ms ease, transform 400ms ease;
}

.hero-rotating-text.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-rotating-text.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(var(--parallax-y, 0));
  transition: transform 120ms linear;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background: rgba(14, 42, 31, 0.82);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.floating-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 12px 42px rgba(14, 42, 31, 0.08);
}

.quick-section div {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: var(--white);
}

.quick-section strong {
  color: var(--green);
}

.quick-section span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 6vw, 82px);
}

.menu-page-only {
  display: none;
}

body.menu-page .home-only,
body.menu-page .quick-section {
  display: none;
}

body.menu-page .menu-page-only {
  display: block;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

h2 {
  margin-bottom: 0;
  color: var(--green);
  font-size: clamp(2.4rem, 5vw, 5.6rem);
  line-height: 0.94;
}

h3 {
  margin-bottom: 6px;
  color: var(--green);
  font-size: 1rem;
  line-height: 1.22;
}

.icon-link {
  padding: 0 18px;
  background: var(--white);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(14, 42, 31, 0.08);
}

.feature-tabs,
.category-selector {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px;
  scrollbar-width: none;
}

.feature-tabs::-webkit-scrollbar,
.category-selector::-webkit-scrollbar,
.featured-carousel::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
}

.pill.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.featured-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 330px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
}

.featured-carousel .menu-card {
  scroll-snap-align: start;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.menu-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(14, 42, 31, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-image {
  position: relative;
  aspect-ratio: 1.18;
  overflow: hidden;
  background: #e8e2d4;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

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

.tag-row {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  border-radius: 999px;
  background: rgba(246, 244, 238, 0.92);
  color: var(--green);
  padding: 6px 9px;
  font-size: 0.7rem;
  font-weight: 900;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.card-body p {
  min-height: 38px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.price-row,
.action-row,
.modal-buy-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.price {
  color: var(--green);
  font-size: 1.08rem;
  font-weight: 900;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 34px 42px 34px;
  height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
}

.quantity-stepper button,
.quantity-stepper input,
.quantity-stepper span {
  border: 0;
  background: transparent;
  color: var(--green);
  text-align: center;
  font-weight: 900;
}

.quantity-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quantity-stepper button {
  cursor: pointer;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.quick-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--green);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-actions button:first-child {
  background: var(--green);
  color: var(--white);
}

.quick-actions button:last-child {
  grid-column: 1 / -1;
  background: var(--white);
}

.info-section {
  padding-top: 34px;
}

.info-grid,
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.info-grid div,
.trust-badges span {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 22px;
  box-shadow: 0 14px 36px rgba(14, 42, 31, 0.07);
}

.info-grid strong,
.trust-badges span {
  color: var(--green);
  font-weight: 900;
}

.info-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

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

.catering-section {
  padding-top: 36px;
}

.catering-panel {
  display: grid;
  gap: 28px;
  overflow: hidden;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(14, 42, 31, 0.98), rgba(24, 63, 48, 0.94)),
    url("assets/maud9-banner.jpg") center/cover;
  color: var(--white);
  padding: clamp(28px, 6vw, 70px);
  box-shadow: var(--shadow);
}

.catering-panel h2 {
  max-width: 820px;
  color: var(--white);
}

.eyebrow.light {
  color: var(--gold);
}

.event-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-chips span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  font-weight: 800;
}

.catering-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.catering-footer strong {
  color: var(--gold);
  font-size: 1.2rem;
}

.contact-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(14, 42, 31, 0.08);
}

.contact-links {
  display: grid;
  gap: 10px;
  color: var(--green);
  font-weight: 900;
  text-align: right;
}

.cart-overlay,
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(14, 42, 31, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.cart-overlay.active,
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: auto auto auto auto;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 22px;
  background: var(--cream);
  box-shadow: -24px 0 60px rgba(14, 42, 31, 0.2);
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.2, 0.72, 0.2, 1);
  overflow: auto;
}

.cart-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.drawer-header h2 {
  font-size: 2.8rem;
}

.circle-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  max-height: 28vh;
  overflow: auto;
  padding-right: 4px;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.cart-line img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-line strong {
  display: block;
  color: var(--green);
  font-size: 0.9rem;
  line-height: 1.22;
}

.cart-line span {
  color: var(--muted);
  font-size: 0.82rem;
}

.remove-line {
  border: 0;
  background: transparent;
  color: #8b3f36;
  cursor: pointer;
  font-weight: 900;
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.cart-summary strong {
  color: var(--green);
}

.grand-total {
  font-size: 1.16rem;
  font-weight: 900;
}

.checkout-form {
  display: grid;
  gap: 10px;
}

.address-row {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.payment-options {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.payment-options legend {
  color: var(--green);
  font-weight: 900;
  padding: 0 6px;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--black);
  font-size: 0.9rem;
  font-weight: 700;
}

.payment-options input {
  width: auto;
}

.payment-note,
.checkout-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.checkout-message[data-type="error"] {
  color: #8b3f36;
  font-weight: 800;
}

.checkout-message[data-type="warning"] {
  color: #8a650f;
  font-weight: 800;
}

.checkout-message[data-type="success"] {
  color: var(--green);
  font-weight: 800;
}

.fallback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fallback-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-weight: 900;
}

.checkout-button {
  width: 100%;
}

.mobile-cart-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 35;
  display: none;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 18px 46px rgba(14, 42, 31, 0.28);
  font-weight: 900;
}

.mobile-cart-bar strong {
  color: var(--gold);
}

.item-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  width: min(900px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.item-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.item-modal > img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.modal-content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
}

.modal-content h2 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.modal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-buy-row {
  margin-top: 8px;
}

#modalPrice {
  color: var(--green);
  font-size: 1.4rem;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 30px 18px 92px;
  background: #071b14;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer img {
  width: 34px;
  height: 34px;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1180px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    min-height: 380px;
  }

  .quick-section {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .trust-grid,
  .trust-badges {
    grid-template-columns: 1fr;
  }

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

  .contact-card,
  .section-heading {
    display: grid;
  }

  .contact-links {
    text-align: left;
  }

  .item-modal {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .item-modal > img {
    min-height: 260px;
    max-height: 42vh;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
  }

  .brand img {
    width: 104px;
  }

  .nav-links {
    display: none;
  }

  .cart-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .cart-button strong {
    display: none;
  }

  h1 {
    font-size: clamp(4rem, 18vw, 6.4rem);
  }

  .hero {
    padding-top: 38px;
  }

  .hero-logo {
    margin-bottom: 34px;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .quick-section {
    margin-left: 14px;
    margin-right: 14px;
  }

  .featured-carousel {
    grid-auto-columns: minmax(250px, 82vw);
  }

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

  .cart-drawer {
    width: 100vw;
    padding-bottom: 82px;
  }

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

  .mobile-cart-bar {
    display: flex;
  }
}
