/*
Theme Name: Meze Restaurant
Theme URI: https://example.com/meze-restaurant
Author: Codex
Description: Onepager theme for Meze & Friends.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: meze-restaurant
*/

:root {
  --bg: #f2eee3;
  --paper: #f9f6ec;
  --ink: #222d25;
  --muted: #596258;
  --accent: #63744b;
  --accent-2: #9b7e51;
  --edge: #d4ccb7;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 12px 35px rgba(34, 36, 29, 0.11);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, #e8dfcc 0, transparent 36%),
    radial-gradient(circle at 88% 20%, #e2ead9 0, transparent 40%),
    linear-gradient(180deg, #f4f1e8 0%, #efe7d8 100%);
  line-height: 1.65;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-repeat: no-repeat;
  background-size: contain;
}

body::before {
  width: 210px;
  height: 250px;
  top: 88px;
  left: -42px;
  background-image: url("assets/ornaments/olive-branch.svg");
}

body::after {
  width: 170px;
  height: 170px;
  bottom: 56px;
  right: -18px;
  background-image: url("assets/ornaments/olive-cluster.svg");
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 248, 240, 0.95);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid rgba(125, 134, 111, 0.25);
  transition: all 0.3s ease;
}

.topbar.is-scrolled {
  background: rgba(252, 248, 240, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.topbar__inner {
  min-height: 74px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  transition: min-height 0.3s ease;
}

.topbar.is-scrolled .topbar__inner {
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: #fff;
  object-fit: cover;
}

.brand__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.96rem;
  color: var(--muted);
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

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

.icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.icon--inline {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

.hero {
  padding: 64px 0 42px;
}

.hero__card {
  border: 1px solid var(--edge);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--paper);
  position: relative;
}

.hero__card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 190px;
  right: -26px;
  bottom: -24px;
  background: url("assets/ornaments/olive-branch.svg") center/contain no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.hero__card::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  left: -16px;
  top: -10px;
  background: url("assets/ornaments/olive-cluster.svg") center/contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.hero__visual {
  min-height: 400px;
  padding: 48px;
  display: grid;
  align-items: end;
  background-color: var(--edge);
  background-image:
    linear-gradient(18deg, rgba(46, 56, 43, 0.18), rgba(46, 56, 43, 0.05)),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__content {
  max-width: 560px;
  padding: 0;
  position: relative;
}

.hero__content::before {
  content: none;
}

.hero__badge {
  display: inline-flex;
  margin-bottom: 18px;
  color: #2b3a2f;
  padding: 6px 13px;
  border: 1px solid rgba(111, 125, 81, 0.5);
  background: rgba(244, 238, 225, 0.85);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hero h1 {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.08;
  color: #1f2b24;
}

.hero p {
  margin: 0;
  color: #33423a;
  font-size: clamp(0.94rem, 1.2vw, 1.02rem);
}

.cta-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--secondary {
  background: rgba(244, 236, 221, 0.95);
  color: #243229;
  border-color: rgba(111, 125, 81, 0.45);
}

.btn--ghost {
  color: #243229;
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(111, 125, 81, 0.35);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.btn .icon {
  margin-right: 7px;
}

.btn--instagram {
  margin-top: 14px;
  background: #1f2b24;
  color: #fff;
}

section {
  padding: 34px 0;
}

.section-title {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.section-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(34, 36, 29, 0.08);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.lunch-list {
  margin: 12px 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.lunch-list li {
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lunch-list li:hover {
  border-color: rgba(111, 125, 81, 0.45);
  background: #fdfaf4;
}

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

.gallery-copy {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 56ch;
  font-size: 0.98rem;
}

.gallery-highlight-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-grid--secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  min-height: 180px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(40, 40, 30, 0.08);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item--highlight {
  min-height: 290px;
}

.gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: #fff;
  font-size: 0.86rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.contact-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact-list strong {
  color: var(--muted);
  font-size: 0.9rem;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
}

.reserve-notes {
  margin-top: 14px;
  background: #f7f2e8;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 0.93rem;
}

.footer {
  margin-top: 10px;
  border-top: 1px solid rgba(121, 128, 111, 0.25);
  padding: 30px 0 40px;
  background: var(--paper);
}

.footer__inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__info {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

.footer__social a {
  display: inline-flex;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--edge);
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer__social a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: var(--accent);
}

.footer__links {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.floating-wa {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 60;
}

.floating-wa a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  background: #2f7b4f;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(22, 45, 31, 0.35);
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s ease forwards;
}

.fade-in:nth-child(2) {
  animation-delay: 0.08s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.14s;
}

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

.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 20, 15, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-overlay.is-active .lightbox-content {
  transform: scale(1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: #fff;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 800px) {
  .lightbox-close {
    top: -40px;
    right: 0;
  }
}

@media (max-width: 980px) {
  body::before {
    width: 150px;
    height: 180px;
    left: -50px;
    opacity: 0.2;
  }

  body::after {
    width: 120px;
    height: 120px;
    right: -24px;
    opacity: 0.18;
  }

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

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

  .gallery-grid--secondary {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .gallery-item--highlight {
    min-height: 250px;
  }

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

@media (max-width: 700px) {

  body::before,
  body::after {
    display: none;
  }

  .topbar__inner {
    padding: 10px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    font-size: 0.9rem;
  }

  .hero__visual {
    min-height: 330px;
    padding: 26px;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__card::after {
    width: 88px;
    height: 88px;
    right: -15px;
    bottom: -15px;
    opacity: 0.28;
  }

  .hero__card::before {
    width: 82px;
    height: 82px;
    left: -16px;
    top: -12px;
    opacity: 0.2;
  }

  .gallery-highlight-row,
  .gallery-grid,
  .gallery-grid--secondary {
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
  }

  /* Mobile order tweak: move first image of row 2 to slot 3 */
  .gallery-grid--secondary .gallery-item:nth-child(1) {
    order: 3;
  }

  .gallery-grid--secondary .gallery-item:nth-child(2) {
    order: 1;
  }

  .gallery-grid--secondary .gallery-item:nth-child(3) {
    order: 2;
  }

  .gallery-item {
    min-height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
  }

  .gallery-item--highlight {
    min-height: auto;
  }

  .floating-wa a {
    min-height: 46px;
    padding: 0 13px;
    font-size: 0.9rem;
  }
}
