@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;0,6..96,800;0,6..96,900;1,6..96,400;1,6..96,500&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ============================================================
   LUXURY KWIZINE — Candlelit Dining Room

   A private dining room at midnight. Gold on navy.
   Moroccan geometry meets French confidence.
   Every plate is an event. Every meal, theatre.
   ============================================================ */

:root {
  --color-primary: #1A1A2E;
  --color-primary-mid: #252542;
  --color-primary-light: #32325A;
  --color-gold: #C9A94E;
  --color-gold-dim: rgba(201, 169, 78, 0.35);
  --color-gold-glow: rgba(201, 169, 78, 0.08);
  --color-red: #8B2500;
  --color-red-soft: rgba(139, 37, 0, 0.15);
  --color-bg: #FDFBF7;
  --color-bg-warm: #F7F2EA;
  --color-text: #1A1A2E;
  --color-text-light: #5A5A72;
  --color-text-muted: #9696A8;
  --color-text-on-dark: rgba(255, 255, 255, 0.85);
  --color-text-dim: rgba(255, 255, 255, 0.45);
  --color-border: #E0DBD0;
  --color-hairline-dark: rgba(201, 169, 78, 0.18);

  --font-display: 'Bodoni Moda', 'Didot', 'Times New Roman', serif;
  --font-body: 'Raleway', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --header-height: 60px;
  --container-max: 1200px;
  --container-narrow: 720px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 2rem); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
a:hover { opacity: 0.75; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
}

p { margin-bottom: 1.4em; }

::selection { background: var(--color-gold); color: var(--color-primary); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* =============================================
   MOROCCAN TILE PATTERN (CSS only)
   Used as a decorative band between sections
   ============================================= */
.moroccan-band {
  height: 32px;
  background:
    linear-gradient(45deg, var(--color-gold-dim) 25%, transparent 25%),
    linear-gradient(-45deg, var(--color-gold-dim) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--color-gold-dim) 75%),
    linear-gradient(-45deg, transparent 75%, var(--color-gold-dim) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  opacity: 0.6;
}

/* =============================================
   HEADER — Dark bar, gold logo, discreet nav
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-logo:hover { opacity: 0.7; color: var(--color-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.nav-links a:hover { color: var(--color-gold); opacity: 1; }

/* Hamburger — gold lines on dark */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-gold-dim);
  width: 38px;
  height: 38px;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: '';
  position: absolute;
  left: 9px;
  width: 18px;
  height: 1px;
  background: var(--color-gold);
  transition: all 0.3s ease;
}
.nav-toggle::before { top: 12px; }
.nav-toggle span { top: 18px; }
.nav-toggle::after { top: 24px; }

.nav-open .nav-toggle::before { top: 18px; transform: rotate(45deg); }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::after { top: 18px; transform: rotate(-45deg); }

/* =============================================
   HERO — Cinematic. Dark. A stage.
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

/* Background image fills hero */
.hero img,
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Dark vignette overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(26, 26, 46, 0.7) 100%),
    linear-gradient(to top, rgba(26, 26, 46, 0.85) 0%, transparent 50%);
}

/* Gold corner accent — top left */
.hero::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  border-top: 1px solid var(--color-gold-dim);
  border-left: 1px solid var(--color-gold-dim);
  z-index: 3;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-bottom: var(--space-xl);
  text-align: center;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 em,
.hero h1 span {
  color: var(--color-gold);
  font-style: italic;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn,
.view-all {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn {
  background: var(--color-gold);
  color: var(--color-primary);
  padding: 0.9rem 2.4rem;
  border: none;
}
.btn:hover { background: #D4B85E; color: var(--color-primary); opacity: 1; }

.view-all {
  color: var(--color-gold);
  border: 1px solid var(--color-gold-dim);
  padding: 0.7rem 2rem;
  background: transparent;
}
.view-all:hover { background: var(--color-gold); color: var(--color-primary); opacity: 1; }

/* =============================================
   LATEST RECIPES
   ============================================= */
.latest-recipes {
  padding: var(--space-xl) 0;
}

.latest-recipes h2 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* =============================================
   RECIPE GRID — Magazine spread
   ============================================= */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

/* =============================================
   RECIPE CARD — Overlay style (text ON image)
   ============================================= */
.recipe-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.card-image {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1), filter 0.7s ease;
  filter: brightness(0.85) contrast(1.05);
}

.recipe-card:hover .card-image img {
  transform: scale(1.05);
  filter: brightness(0.75) contrast(1.1);
}

/* Dark gradient overlay on cards */
.recipe-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.9) 0%,
    rgba(26, 26, 46, 0.3) 40%,
    transparent 70%
  );
  transition: background 0.4s ease;
}

.recipe-card:hover::before {
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.5) 50%,
    rgba(26, 26, 46, 0.1) 80%
  );
}

/* Gold corner accent on hover */
.recipe-card::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid var(--color-gold);
  border-right: 1px solid var(--color-gold);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.recipe-card:hover::after { opacity: 0.5; }

.card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.5rem;
}

.card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.3rem;
  letter-spacing: 0.01em;
}

.card-body p {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin: 0;
}

.card-time {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-top: 0.5rem;
}

/* =============================================
   SINGLE RECIPE
   ============================================= */
.recipe-single {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.recipe-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.recipe-header h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-sm);
}

.recipe-description {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto var(--space-md);
  font-style: italic;
}

/* Meta — dark bar, gold numbers, restaurant-menu feel */
.recipe-meta {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--color-primary);
  margin: var(--space-md) calc(-1 * var(--space-md));
  padding: 0;
}

.meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.2rem 1rem;
  border-right: 1px solid var(--color-hairline-dark);
}

.meta-item:last-child { border-right: none; }

.meta-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--color-gold);
  letter-spacing: 0.03em;
}

.meta-item span {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* Recipe hero image — cinematic with vignette */
.recipe-hero-image {
  margin: var(--space-lg) calc(-1 * var(--space-md));
  position: relative;
  line-height: 0;
}

.recipe-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 80px rgba(26, 26, 46, 0.2);
  pointer-events: none;
}

.recipe-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =============================================
   RECIPE BODY
   ============================================= */
.recipe-body {
  font-size: 1rem;
  line-height: 1.85;
  margin-top: var(--space-lg);
}

.recipe-body h2 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

/* =============================================
   INGREDIENTS — Dark panel, restaurant menu
   ============================================= */
.recipe-ingredients {
  background: var(--color-primary);
  color: var(--color-text-on-dark);
  padding: var(--space-lg);
  margin: var(--space-lg) calc(-1 * var(--space-md));
  position: relative;
}

/* Moroccan corner accents */
.recipe-ingredients::before,
.recipe-ingredients::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
}
.recipe-ingredients::before {
  top: 1rem;
  left: 1rem;
  border-top: 1px solid var(--color-gold-dim);
  border-left: 1px solid var(--color-gold-dim);
}
.recipe-ingredients::after {
  bottom: 1rem;
  right: 1rem;
  border-bottom: 1px solid var(--color-gold-dim);
  border-right: 1px solid var(--color-gold-dim);
}

.recipe-ingredients h2,
.recipe-ingredients h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  text-align: center;
}

.recipe-ingredients ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.recipe-ingredients li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-on-dark);
  break-inside: avoid;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Gold diamond bullet */
.recipe-ingredients li::before {
  content: '◇';
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: var(--color-gold);
  font-size: 0.65rem;
}

/* =============================================
   INSTRUCTIONS — Tasting menu courses
   ============================================= */
.recipe-instructions {
  margin: var(--space-lg) 0;
  counter-reset: lux-step;
}

.recipe-instructions h2,
.recipe-instructions h3 {
  margin-bottom: var(--space-md);
}

.recipe-instructions ol {
  list-style: none;
  padding: 0;
}

.recipe-instructions li {
  counter-increment: lux-step;
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) 5rem;
  border-left: 1px solid var(--color-gold-dim);
  margin-left: 2rem;
  line-height: 1.85;
}

.recipe-instructions li + li {
  margin-top: var(--space-xs);
}

/* Oversized gold numeral */
.recipe-instructions li::before {
  content: counter(lux-step, decimal-leading-zero);
  position: absolute;
  left: -2.5rem;
  top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--color-gold);
  letter-spacing: -0.02em;
  line-height: 1;
  width: 3.5rem;
  text-align: right;
}

/* Gold dot at the connection point */
.recipe-instructions li::after {
  content: '';
  position: absolute;
  left: -3px;
  top: calc(var(--space-md) + 0.6rem);
  width: 5px;
  height: 5px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* =============================================
   NUTRITION
   ============================================= */
.recipe-nutrition {
  margin: var(--space-lg) 0;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-warm);
  text-align: center;
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.recipe-nutrition h2,
.recipe-nutrition h3 {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

/* =============================================
   RECIPE FOOTER
   ============================================= */
.recipe-footer {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.recipe-categories,
.recipe-tags {
  margin-bottom: var(--space-sm);
}

.recipe-categories h4,
.recipe-tags h4 {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-border);
  margin: 0 0.3rem 0.5rem 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--color-primary);
  color: var(--color-gold);
  border-color: var(--color-primary);
  opacity: 1;
}

/* =============================================
   LIST PAGE
   ============================================= */
.list-page {
  padding: var(--space-xl) 0;
}

.list-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.list-description {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-light);
  max-width: 450px;
  margin: 0 auto var(--space-lg);
}

.empty-message {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-xl);
}

.page-item {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-item:hover,
.page-item.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-gold);
  opacity: 1;
}

/* =============================================
   FOOTER — Dark, gold, confident
   ============================================= */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-dim);
  padding: var(--space-lg) 0;
  text-align: center;
  position: relative;
}

/* Gold Moroccan band at top of footer */
.site-footer::before {
  content: '';
  display: block;
  height: 24px;
  background:
    linear-gradient(45deg, var(--color-gold-dim) 25%, transparent 25%),
    linear-gradient(-45deg, var(--color-gold-dim) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--color-gold-dim) 75%),
    linear-gradient(-45deg, transparent 75%, var(--color-gold-dim) 75%);
  background-color: var(--color-primary);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.site-footer p {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--color-gold);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
}
.site-footer a:hover { opacity: 0.5; }

/* =============================================
   RESPONSIVE �� 768px
   ============================================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
  }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 0.8rem; letter-spacing: 0.22em; color: rgba(255,255,255,0.6); }

  .hero { min-height: 60vh; }

  .recipe-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .recipe-card { aspect-ratio: 3 / 4; }

  .recipe-ingredients ul { columns: 1; }

  .recipe-instructions li {
    padding-left: 4rem;
    margin-left: 1.5rem;
  }

  .recipe-instructions li::before {
    left: -2rem;
    font-size: 1.5rem;
  }

  .recipe-meta {
    margin-left: 0;
    margin-right: 0;
    flex-wrap: wrap;
  }
}

/* =============================================
   RESPONSIVE — 480px
   ============================================= */
@media (max-width: 480px) {
  :root {
    --header-height: 52px;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
  }

  .hero { min-height: 50vh; }

  .hero h1 { font-size: 1.8rem; }

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

  .recipe-card { aspect-ratio: 4 / 5; }

  .recipe-ingredients {
    padding: var(--space-md);
    margin-left: 0;
    margin-right: 0;
  }

  .recipe-instructions li {
    padding-left: 3rem;
    margin-left: 1rem;
  }

  .recipe-instructions li::before {
    left: -1.5rem;
    font-size: 1.2rem;
    width: 2.5rem;
  }

  .meta-item {
    padding: 0.8rem 0.5rem;
  }

  .meta-item strong { font-size: 1rem; }

  .recipe-hero-image {
    margin-left: 0;
    margin-right: 0;
  }
}

/* === Focus === */
:focus-visible {
  outline: 1px solid var(--color-gold);
  outline-offset: 3px;
}

/* === Print === */
@media print {
  .site-header, .site-footer, .nav-toggle, .pagination, .view-all, .btn, .moroccan-band { display: none !important; }
  body { background: #fff; color: #000; }
  .recipe-ingredients { background: #f5f5f5; color: #000; }
  .recipe-ingredients li::before { color: #333; }
  .recipe-meta { background: #f0f0f0; }
  .meta-item strong { color: #000; }
  .meta-item span { color: #333; }
  .recipe-card { aspect-ratio: auto; }
  .recipe-card::before { display: none; }
  .card-body { position: static; color: #000; }
  .card-body h3 { color: #000; }
}
