/* 
 * Restaurant Mandarin Amersfoort - Modern Editorial Stylesheet
 * Palette: Warm ivory background, slate dark text, imperial crimson & emerald jade accents
 */

:root {
  --bg-page: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F3EFEA;
  --text-main: #1E293B;
  --text-muted: #475569;
  --accent-red: #9E282C;
  --accent-red-dark: #7C1D20;
  --accent-green: #17773C;
  --accent-green-dark: #0F542A;
  --accent-gold: #D4AF37;
  --border-light: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--accent-red);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent-red);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* Typography Scale */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--accent-red);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}

p {
  margin-bottom: 1.15rem;
  max-width: 70ch;
  color: var(--text-main);
}

p:last-child {
  margin-bottom: 0;
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--accent-red);
  color: #FFFFFF;
  font-size: 0.9rem;
  padding: 8px 20px;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  gap: 6px;
}

.top-bar a:hover {
  text-decoration: underline;
  color: #FDE68A;
}

/* Sticky Header & Main Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo img {
  height: 68px;
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.nav-toggle:hover, .nav-toggle:focus-visible {
  background: var(--border-light);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background-color: var(--bg-subtle);
  color: var(--accent-red);
}

.nav-list a[aria-current="page"] {
  background-color: rgba(158, 40, 44, 0.1);
  color: var(--accent-red);
}

.nav-list a.btn-cta {
  background-color: var(--accent-green);
  color: #FFFFFF;
  padding: 10px 18px;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(23, 119, 60, 0.25);
}

.nav-list a.btn-cta:hover,
.nav-list a.btn-cta:focus-visible {
  background-color: var(--accent-green-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumb-bar {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 20px;
}

.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.9rem;
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.breadcrumb-list a:hover {
  color: var(--accent-red);
  text-decoration: underline;
}

.breadcrumb-list [aria-current="page"] {
  color: var(--accent-red);
  font-weight: 600;
}

/* Main Content Layout */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Subpage Sidebar + Content Grid */
.layout-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.side-nav-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.side-nav-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-red);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.vertical-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vertical-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.vertical-nav a:hover,
.vertical-nav a:focus-visible {
  background-color: var(--bg-subtle);
  color: var(--accent-red);
}

.vertical-nav a.active,
.vertical-nav a[aria-current="page"] {
  background-color: var(--accent-red);
  color: #FFFFFF;
}

/* Modern Hero Carousel / Slider */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  background: #0F172A;
  margin-bottom: 32px;
  height: 250px;
}

.photo-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: right;
  margin-top: -22px;
  margin-bottom: 24px;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  list-style: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease-in-out, visibility 0.65s ease-in-out;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide a,
.hero-slide-inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease-out;
}

.hero-slide.is-active img {
  transform: scale(1.04);
}

.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 60%, transparent 100%);
  color: #FFFFFF;
  padding: 36px 24px 18px;
  font-size: 1.05rem;
  z-index: 3;
}

.hero-caption strong {
  color: #FDE68A;
}

/* Slider Controls (Prev / Next & Dots) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-50%) scale(1.06);
}

.slider-btn.prev {
  left: 14px;
}

.slider-btn.next {
  right: 14px;
}

.slider-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.slider-dots {
  position: absolute;
  bottom: 14px;
  right: 20px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s ease, background-color 0.25s ease;
}

.slider-dot:hover,
.slider-dot:focus-visible {
  background: rgba(255, 255, 255, 0.85);
}

.slider-dot.is-active {
  width: 28px;
  background: #FDE68A;
}

/* Cards & Content Sections */
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent-red);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.info-card h2 {
  font-size: 1.45rem;
  border-bottom: 2px solid var(--bg-subtle);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

/* Pricing / Costs List */
.costs {
  list-style: none;
  margin: 20px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 520px;
}

.costs li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.costs li:nth-child(even) {
  background: var(--bg-page);
}

.costs li:last-child {
  border-bottom: none;
}

.costs .name {
  font-weight: 600;
  color: var(--text-main);
}

.costs .desc {
  font-weight: 700;
  color: var(--accent-red);
  font-size: 1.05rem;
}

/* Menu Tables & Package Cards */
.menu-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.package-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.package-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-red);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.package-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.package-items {
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.package-items li {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.package-items li::before {
  content: "•";
  color: var(--accent-red);
  font-weight: 700;
}

.package-price-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: auto;
}

.package-price-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding: 4px 0;
}

.package-price-row span:last-child {
  color: var(--accent-red);
}

.menu-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.menu-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.menu-category-card h2,
.menu-category-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-red);
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-subtle);
}

.dish-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dish-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-light);
  font-size: 0.95rem;
}

.dish-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dish-num {
  font-weight: 700;
  color: var(--accent-red);
  min-width: 34px;
  display: inline-block;
}

.dish-name {
  font-weight: 600;
  color: var(--text-main);
}

.dish-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.dish-price {
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.badge-highlight {
  display: inline-block;
  background: rgba(158, 40, 44, 0.1);
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Menu Downloads Bar */
.menu-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  background-color: var(--accent-red);
  color: #FFFFFF;
}

.btn-link:hover, .btn-link:focus-visible {
  background-color: var(--accent-red-dark);
  color: #FFFFFF;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  background: transparent;
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: var(--accent-green);
  color: #FFFFFF;
}

/* Map Container */
.map-wrapper {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--accent-green);
  box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* Quick Page Switcher Tabs for pages.html */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.section-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.section-tabs a:hover,
.section-tabs a.active {
  background: var(--accent-red);
  color: #FFFFFF;
  border-color: var(--accent-red);
}

/* Footer */
.site-footer {
  background-color: #1E2229;
  color: #E2E8F0;
  border-top: 5px solid var(--accent-red);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px;
}

.footer-col h2, .footer-col h3 {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 16px;
}

.footer-col p {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #FDE68A;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #94A3B8;
}

/* Responsive Breakpoints */
@media (max-width: 920px) {
  .top-bar-inner span {
    display: none;
  }

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

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

  .layout-grid > aside {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--accent-red);
    box-shadow: var(--shadow-md);
    padding: 16px 20px;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-list a {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-list a.btn-cta {
    margin-left: 0;
    margin-top: 6px;
    justify-content: center;
  }
}
