@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

:root {
  /* Hero-aligned palette: red / black / cream / olive */
  --primary-red: #c41e2e;
  --dark-red: #6b0f18;
  --black: #14120f;
  --white: #fffcf7;
  --cream: #f4f0e8;
  --cream-deep: #e8e2d6;
  --accent-green: #2d4a2e;
  --accent-green-soft: #d8e0d4;
  --text-body: #2a2622;
  --text-muted: #5c544c;
  --light-gray: #f0ebe3;
  --dark-gray: var(--text-body);
  --border-gray: #dcd4c4;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-body);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 28px,
      rgba(20, 18, 15, 0.018) 28px,
      rgba(20, 18, 15, 0.018) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 56px,
      rgba(196, 30, 46, 0.025) 56px,
      rgba(196, 30, 46, 0.025) 57px
    );
  line-height: 1.6;
}

*:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

h1,
h2,
h3,
.logo {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

/* Navbar */
nav {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-bottom: 3px solid var(--black);
  box-shadow: 0 3px 0 0 var(--primary-red), 0 6px 20px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.3s ease, color 0.2s ease;
}

.logo:hover {
  color: var(--primary-red);
  opacity: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-red);
  border-radius: 2px;
  transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  display: block;
  color: var(--text-body);
  text-decoration: none;
  padding: 1rem 1.2rem;
  transition: all 0.3s ease;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover {
  color: var(--primary-red);
  border-bottom-color: var(--accent-green);
}

.nav-links a.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
  font-weight: 700;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  flex-direction: column;
  border-bottom: 3px solid var(--black);
  box-shadow: 0 3px 0 0 var(--primary-red), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  display: block;
  color: var(--text-body);
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-gray);
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background-color: var(--cream-deep);
  color: var(--primary-red);
  padding-left: 2rem;
  border-left: 4px solid var(--accent-green);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
body > header {
  background: linear-gradient(155deg, var(--primary-red) 0%, var(--dark-red) 50%, #3a0a10 100%);
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 4px solid var(--black);
  box-shadow: 0 4px 0 0 var(--primary-red);
}

body > header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

body > header p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Menu sections (e.g. breakfast) */
.menu-section {
  margin-bottom: 2.75rem;
}

.menu-section:last-child {
  margin-bottom: 0;
}

.menu-section > h2 {
  font-size: 1.65rem;
  color: var(--black);
  margin-bottom: 1.1rem;
  font-weight: 400;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-red);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
}

.menu-section-inline-note {
  font-size: 0.78em;
  font-weight: 500;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-muted);
  opacity: 1;
}

.menu-intra-heading {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--accent-green);
  margin: 1.35rem 0 0.85rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--accent-green-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.menu-section > h2 + .menu-intra-heading {
  margin-top: 0.15rem;
}

.menu-section .menu-grid {
  margin: 0 0 0.25rem;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.menu-item {
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(20, 18, 15, 0.08);
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(196, 30, 46, 0.12);
  background: var(--white);
}

.menu-item h3 {
  color: var(--black);
  margin-bottom: 0.8rem;
  font-size: 1.35rem;
  font-weight: 400;
}

.menu-item .price {
  color: var(--primary-red);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.menu-item p {
  color: var(--text-muted);
  margin: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Source Sans 3', sans-serif;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(20, 18, 15, 0.08);
  border: none;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  background: var(--white);
  color: var(--black);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Source Sans 3', sans-serif;
  border-top: 3px solid var(--accent-green);
}

.gallery-empty {
  margin: 2rem 0;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--white);
  border: 2px dashed var(--accent-green-soft);
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.65;
  font-family: 'Source Sans 3', sans-serif;
}

.gallery-empty code {
  font-size: 0.9em;
  color: var(--accent-green);
  word-break: break-all;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1;
}

.gallery-lightbox-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 90%;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-lightbox-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 100%;
  line-height: 0;
}

.gallery-lightbox-close[hidden] {
  display: none !important;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--primary-red);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.2s ease;
  line-height: 0;
  padding: 0 0 2px 0;
}

.gallery-lightbox-close:hover {
  background: var(--white);
  color: var(--primary-red);
  transform: scale(1.1);
}

.gallery-lightbox-close:active {
  transform: scale(0.95);
}

.gallery-lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  cursor: grab;
  transition: transform 0.1s ease;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Item detail card */
.item-detail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-detail[hidden] {
  display: none !important;
}

.item-detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.item-detail-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.item-detail-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--primary-red);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.2s ease;
  line-height: 0;
  padding: 0 0 2px 0;
}

.item-detail-close:hover {
  background: var(--white);
  color: var(--primary-red);
  transform: scale(1.1);
}

.item-detail-content h3 {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.item-detail-content .price {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-family: 'Source Sans 3', sans-serif;
}

.item-detail-content .description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-family: 'Source Sans 3', sans-serif;
}

.item-detail-content .allergens h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
}

.item-detail-content .allergens ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.item-detail-content .allergens li {
  background: var(--cream-deep);
  color: var(--text-body);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
}

/* Footer */
footer {
  background-color: var(--black);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  border-top: 4px solid var(--primary-red);
}

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

footer p,
.footer-link {
  margin-bottom: 0;
  font-weight: 400;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  color: var(--cream);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--primary-red);
}

.footer-link__icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: inherit;
}

.footer-link__icon svg {
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-red);
  color: var(--white);
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Source Sans 3', sans-serif;
  box-shadow: 0 4px 10px rgba(20, 18, 15, 0.15);
}

.btn:hover {
  background-color: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 30, 46, 0.35);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-red);
  border: 1px solid var(--primary-red);
  box-shadow: 0 4px 10px rgba(20, 18, 15, 0.08);
}

.btn-secondary:hover {
  background-color: var(--cream-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(196, 30, 46, 0.2);
}

/* Homepage banner image */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-banner {
  position: relative;
  width: 100%;
  margin: 0 0 2.5rem;
  padding: 0;
  line-height: 0;
  overflow: hidden;
  border-bottom: 4px solid var(--primary-red);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.hero-banner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Cards */
.card {
  background: var(--white);
  border: none;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(20, 18, 15, 0.08);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(196, 30, 46, 0.1);
}

.card-icon {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 28px;
  height: 28px;
  color: var(--accent-green);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card:hover .card-icon {
  opacity: 1;
  transform: translate(3px, -3px);
}

.card h2 {
  color: var(--black);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-right: 2.5rem;
  line-height: 1.7;
  font-family: 'Source Sans 3', sans-serif;
}

.home-discover-title {
  color: var(--primary-red);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.home-contact {
  margin-top: 4rem;
  padding: 2rem;
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 100%);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 12px rgba(20, 18, 15, 0.08);
}

.home-contact h2 {
  color: var(--black);
  margin-bottom: 1.5rem;
  font-size: 1.65rem;
  font-weight: 400;
}

.home-contact p {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text-body);
  margin-bottom: 0.65rem;
}

main a:not(.btn) {
  color: var(--accent-green);
  font-weight: 600;
}

main a:not(.btn):hover {
  color: var(--primary-red);
}

/* Homepage embedded map */
.home-map-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 1.75rem auto 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(20, 18, 15, 0.08);
  height: 0;
  padding-bottom: 56.25%;
  border: none;
}

.home-map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  nav .container {
    height: auto;
    padding: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 0.95rem;
  }

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

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

  .gallery-item img {
    height: 250px;
  }

  .menu-item {
    padding: 1.3rem;
  }

  .card {
    padding: 1.5rem;
  }

  .hero-banner {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  header h1 {
    font-size: 1.6rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  header {
    padding: 3rem 1rem;
  }
}