/* ---------------------------------------------------------
   Tasty Thai Food — takeaway ordering site
   Palette pulled from the logo: deep navy + fresh green
--------------------------------------------------------- */

:root {
  --navy: #1b2a4a;
  --navy-dark: #131f38;
  --green: #4caf50;
  --green-dark: #3d8b40;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ea952;
  --cream: #faf7f0;
  --card: #ffffff;
  --text: #23324f;
  --text-light: #6b7688;
  --border: #e7e2d6;
  --danger: #c0392b;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(27, 42, 74, 0.08);
  --shadow-lg: 0 8px 28px rgba(27, 42, 74, 0.16);
}

* {
  box-sizing: border-box;
}

/* The native `hidden` attribute is only `display: none` by default in the
   browser's own (very low-priority) stylesheet — any of our own rules that
   set `display` on the same element (e.g. `display: flex` for a toolbar)
   win over it and the element stays visible even though it's "hidden".
   This single rule makes `hidden` reliably win everywhere on the site. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: 72px; /* room for mobile cart bar */
}

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

button {
  font-family: inherit;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--navy);
  padding: 18px 16px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-link {
  display: block;
  flex-shrink: 0;
  border-radius: 10px;
}

.logo-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.header-text .tagline {
  margin: 0;
  color: #cfe8d0;
  font-size: 0.95rem;
}

/* ---------- Layout ---------- */

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 860px) {
  .layout {
    grid-template-columns: 1.6fr 1fr;
  }
}

/* ---------- Menu ---------- */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.menu-tab {
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu-tab:hover {
  border-color: var(--green);
}

.menu-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.menu-empty {
  color: var(--text-light);
  font-size: 0.9rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.menu-item:hover,
.menu-item:focus-visible {
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.menu-item:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.menu-item-photo {
  width: 84px;
  height: 84px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.menu-item-info {
  flex: 1;
  min-width: 0;
}

.menu-item-info h3 {
  margin: 0 0 2px;
  font-size: 1rem;
}

.menu-item-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---------- Dietary/allergen badges ---------- */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.badge-row:empty {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.badge-vegan {
  background: #e6f4e6;
  color: #2e7d32;
}

.badge-vegetarian {
  background: #eef6ec;
  color: var(--green-dark);
}

.badge-glutenfree {
  background: #fdf3e3;
  color: #9c6b12;
}

.badge-spicy {
  background: #fdeceb;
  color: var(--danger);
}

.badge-nuts {
  background: #f3ecfb;
  color: #6a3fa0;
}

.menu-item-price {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
}

.menu-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
}

/* ---------- Cart panel ---------- */

.cart-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: sticky;
  top: 16px;
}

.cart-panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.15rem;
}

.cart-empty {
  color: var(--text-light);
  font-size: 0.9rem;
}

.cart-items {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-name {
  flex: 1;
  font-size: 0.92rem;
}

.cart-item-controls,
.modal-qty-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-price {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-totals {
  border-top: 1px dashed var(--border);
  padding-top: 10px;
  margin-bottom: 14px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text-light);
}

.totals-row-total {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 6px;
  margin-top: 6px;
}

.free-delivery-note {
  font-size: 0.78rem;
  color: var(--green-dark);
}

/* ---------- Order form ---------- */

.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.field-optional {
  font-weight: 400;
  color: var(--text-light);
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--cream);
  color: var(--text);
  width: 100%;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.field-row {
  display: flex;
  gap: 10px;
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: -6px 0 0;
}

.notice-box {
  background: #eef6ec;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--text);
  margin: 0;
}

.notice-box-closed {
  background: #fff4e0;
  border-left: 3px solid #f0b429;
  color: #7a4f0a;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.closed-banner {
  background: #fff4e0;
  border-bottom: 2px solid #f0b429;
  color: #7a4f0a;
  text-align: center;
  padding: 10px 16px;
}

.closed-banner p {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.fulfillment-choice {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

.radio-option input {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}

#address-field.field-hidden {
  display: none;
}

.form-error {
  background: #fdecea;
  color: var(--danger);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
  margin: 0;
}

.order-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.order-button:hover {
  background: var(--whatsapp-dark);
}

.order-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  fill: #fff;
  flex-shrink: 0;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0;
  text-align: center;
}

/* ---------- Mobile cart bar ---------- */

.mobile-cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  z-index: 50;
  font-size: 0.95rem;
}

.mobile-cart-cta {
  background: var(--green);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .mobile-cart-bar {
    display: none !important;
  }
  body {
    padding-bottom: 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 20px 16px 32px;
}

/* ---------- Dish detail modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 31, 56, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 200;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  background: var(--card);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 31, 56, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--border);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(19, 31, 56, 0.55);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav-prev {
  left: 10px;
}

.modal-nav-next {
  right: 10px;
}

.modal-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.modal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
}

.modal-dot.active {
  background: #fff;
  width: 9px;
  height: 9px;
}

.modal-body {
  padding: 18px;
}

.modal-body h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.2rem;
}

.modal-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.modal-ingredients {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text);
}

.modal-ingredients .ingredients-label {
  font-weight: 600;
  color: var(--navy);
  margin-right: 4px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.modal-price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

/* ---------- Landing page ---------- */

.landing-body {
  padding-bottom: 0;
}

.hero {
  position: relative;
  min-height: 88vh;
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 16px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 31, 56, 0.6), rgba(19, 31, 56, 0.82));
  z-index: 1;
}

.floating-dishes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.floating-dish {
  position: absolute;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.92;
}

.fd-1 {
  width: 92px;
  height: 92px;
  top: 10%;
  left: 8%;
  animation: float-a 7.5s ease-in-out infinite;
}

.fd-2 {
  width: 70px;
  height: 70px;
  top: 14%;
  right: 10%;
  animation: float-b 6.5s ease-in-out infinite;
  animation-delay: 0.4s;
}

.fd-3 {
  width: 100px;
  height: 100px;
  top: 66%;
  left: 11%;
  animation: float-b 8s ease-in-out infinite;
  animation-delay: 1s;
}

.fd-4 {
  width: 80px;
  height: 80px;
  top: 70%;
  right: 9%;
  animation: float-a 7s ease-in-out infinite;
  animation-delay: 0.6s;
}

.fd-5 {
  width: 64px;
  height: 64px;
  top: 42%;
  left: 2%;
  animation: float-a 6s ease-in-out infinite;
  animation-delay: 1.4s;
}

.fd-6 {
  width: 76px;
  height: 76px;
  top: 40%;
  right: 3%;
  animation: float-b 7.2s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes float-a {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(4deg);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(16px) rotate(-5deg);
  }
}

@media (max-width: 700px) {
  .floating-dishes {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-dish {
    animation: none !important;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  padding: 20px;
}

.hero-logo {
  width: clamp(140px, 30vw, 240px);
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
  color: #fff;
  font-size: 1.05rem;
  max-width: 420px;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 6px;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.cta-button {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.cta-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.fine-print-link {
  /* Intentionally low-contrast against the cream footer background — this
     is the "hard to find" link to the terms & conditions page. It stays
     real, focusable and tab-reachable (not display:none) so it's still
     technically accessible, just very easy to miss at a glance. */
  color: #efe9db;
  text-decoration: none;
  padding: 0 8px;
}

.fine-print-link:hover,
.fine-print-link:focus-visible {
  color: var(--text-light);
}

/* ---------- Simple content pages (Over ons / Algemene voorwaarden) ---------- */

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.page-content h1 {
  color: var(--navy);
  font-size: 1.6rem;
  margin: 0 0 6px;
}

.page-content h2 {
  color: var(--navy);
  font-size: 1.15rem;
  margin: 28px 0 8px;
}

.page-content p {
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 12px;
}

.page-content .page-intro {
  color: var(--text-light);
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--green-dark);
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.placeholder-note {
  background: #fff4e0;
  border-left: 3px solid #f0b429;
  color: #7a4f0a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
