/* ==========================================================
   Bangalore House — stylesheet
   ========================================================== */

:root {
  --primary: #c1272d;
  --primary-dark: #a02026;
  --accent: #d4af37;
  --accent-soft: #f1d98a;
  --dark: #3e2723;
  --menu-panel: #f6e8cf;
  --menu-panel-border: #e8d3a3;
  --cream: #fff9f4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.65;
  color: var(--dark);
  background-color: var(--cream);
  opacity: 0;
  animation: pageFadeIn 0.7s var(--ease) forwards;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.2;
}

::selection {
  background: var(--accent);
  color: var(--dark);
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft), var(--primary));
  z-index: 10000;
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: padding 0.4s var(--ease), transform 0.5s var(--ease);
}

/* frosted background lives on a pseudo-element so that the mobile
   menu (position: fixed) isn't trapped inside a blurred ancestor */
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 251, 245, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 6px 30px rgba(40, 20, 10, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 0;
}

.navbar.scrolled {
  padding: 0.55rem 2.5rem;
}

.navbar.scrolled::before,
.navbar.menu-open::before {
  opacity: 1;
}

.navbar.hide {
  transform: translateY(-110%);
}

.logo {
  position: relative;
  z-index: 3;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: color 0.4s var(--ease), text-shadow 0.4s;
}

.logo-img {
  height: 58px;
  width: 58px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
  transition: height 0.4s var(--ease), width 0.4s var(--ease), transform 0.6s var(--ease);
}

.logo:hover .logo-img {
  transform: rotate(-8deg) scale(1.06);
}

.navbar.scrolled .logo-img {
  height: 44px;
  width: 44px;
  filter: none;
}

.navbar.scrolled .logo,
.navbar.menu-open .logo {
  color: var(--dark);
  text-shadow: none;
}

.nav-links {
  position: relative;
  z-index: 2;
  display: flex;
  list-style: none;
  gap: 2.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  padding-bottom: 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.navbar.scrolled .nav-links a {
  color: var(--dark);
  text-shadow: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.4s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--accent-soft);
}

/* Hamburger (drawn in CSS so the markup stays the same) */
.hamburger {
  display: none;
  position: relative;
  z-index: 3;
  width: 30px;
  height: 20px;
  font-size: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  transition: color 0.4s, background-size 0.3s var(--ease);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease), bottom 0.45s var(--ease);
}

.hamburger::before { top: 0; }
.hamburger::after { bottom: 0; }

.navbar.scrolled .hamburger,
.navbar.menu-open .hamburger {
  color: var(--dark);
}

.hamburger.active {
  background-size: 0 2px;
}

.hamburger.active::before {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.hamburger.active::after {
  bottom: calc(50% - 1px);
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  height: 78vh;
  min-height: 480px;
  color: white;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

body.home .hero {
  height: 100vh;
  height: 100svh;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 1.2rem 0;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  translate: 0 30px;
  animation: heroUp 1s var(--ease) 0.15s forwards;
}

/* once JS splits the title into words, each word animates on its own */
.hero h1.split {
  opacity: 1;
  translate: none;
  animation: none;
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  translate: 0 40px;
  filter: blur(10px);
  animation: wordIn 1.1s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i) * 0.11s);
}

@keyframes wordIn {
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

.hero p {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  translate: 0 30px;
  animation: heroUp 1s var(--ease) 0.7s forwards;
}

.hero p::before {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: ruleGrow 1.1s var(--ease) 0.6s forwards;
}

@keyframes ruleGrow {
  to { width: 110px; }
}

.hero .btn {
  opacity: 0;
  translate: 0 30px;
  animation: heroUp 1s var(--ease) 0.95s forwards;
}

@keyframes heroUp {
  to { opacity: 1; translate: 0 0; }
}

/* slow zoom + parallax (parallax uses the `translate` property
   so it never fights with the zoom's `transform`) */
.hero-bg {
  position: absolute;
  inset: -15% 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  translate: 0 var(--py, 0px);
  will-change: translate, transform;
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

/* scroll cue (injected by script.js) */
.hero-scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  animation: heroUp 1s var(--ease) 1.6s forwards;
}

.hero-scroll span {
  padding-left: 0.35em; /* balances the trailing letter-spacing so the label centres on the line */
}

.hero-scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--accent), transparent);
  transform-origin: top;
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.85rem 2.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 6px 18px rgba(193, 39, 45, 0.4);
}

/* light sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
}

.btn:hover::after {
  left: 130%;
  transition: left 0.8s var(--ease);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(193, 39, 45, 0.5);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.revealed .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* ---------- Content sections ---------- */
section.container > h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

section.container > h2[style*="center"]::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 3px;
}

.about-content {
  padding: 3rem 2rem;
  margin: 3rem auto;
}

.about-content h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 2.2rem;
}

.about-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 3px;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 0;
}

.timeline-item {
  padding: 2rem 2rem 2rem 2.6rem;
  position: relative;
  border-bottom: 1px solid #eee;
  transition: background 0.4s var(--ease);
}

.timeline-item:hover {
  background: rgba(212, 175, 55, 0.07);
}

.timeline-item h3 {
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-year {
  position: absolute;
  left: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.78rem;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.45);
  transition: transform 0.5s var(--ease);
}

.timeline-item:hover .timeline-year {
  transform: translateY(-50%) scale(1.12);
}

/* ---------- About: contact + map ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info .btn {
  margin-top: 0.5rem;
}

.contact-item {
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
}

.contact-item h3 {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8a6d1f;
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin: 0;
}

.contact-item a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-map {
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 36px rgba(62, 39, 25, 0.15);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Menu (accordion) ---------- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  height: 100%;
}

.menu-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

.menu-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.menu-item:hover img {
  transform: scale(1.06);
}

.menu-item-content {
  padding: 1.2rem;
}

.menu-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.price {
  display: block;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.5rem;
  font-size: 1.2rem;
}

.menu-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.menu-intro h2 {
  color: var(--primary);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 0.6rem;
}

.menu-intro h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.8rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  border-radius: 3px;
}

/* search (injected by script.js) */
.menu-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto 1.8rem;
}

.menu-search svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--accent);
  pointer-events: none;
}

.menu-search input {
  width: 100%;
  padding: 0.95rem 2.8rem 0.95rem 3rem;
  border-radius: 50px;
  border: 1px solid var(--menu-panel-border);
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  box-shadow: 0 4px 16px rgba(62, 39, 25, 0.07);
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}

.menu-search input::-webkit-search-cancel-button {
  display: none;
}

.menu-search input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22), 0 4px 16px rgba(62, 39, 25, 0.07);
}

.menu-search-clear {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f3e6d8;
  color: var(--dark);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.menu-search.has-value .menu-search-clear {
  display: block;
}

.menu-empty {
  text-align: center;
  color: #8a6d1f;
  margin-bottom: 1.5rem;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--menu-panel);
  border: 1px solid var(--menu-panel-border);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(62, 39, 25, 0.1);
}

@media (max-width: 600px) {
  .accordion {
    padding: 1.2rem 0.9rem;
    border-radius: 16px;
  }
}

.accordion-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(62, 39, 25, 0.07);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}

.accordion-item.open {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(62, 39, 25, 0.13);
}

.accordion-header {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: white;
  border: none;
  cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: left;
  transition: background 0.3s, padding-left 0.4s var(--ease);
}

.accordion-header::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease);
}

.accordion-header:hover,
.accordion-item.open .accordion-header {
  background: #fdf6e8;
}

.accordion-header:hover::before,
.accordion-item.open .accordion-header::before {
  transform: scaleY(1);
}

.accordion-count {
  margin-left: auto;
  font-family: 'Lora', serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #8a6d1f;
  background: #fdf3d8;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
}

.accordion-icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.5s var(--ease);
  flex-shrink: 0;
  margin-left: 0.9rem;
  line-height: 1;
}

.accordion-item.open .accordion-icon {
  transform: rotate(135deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease);
}

.accordion-panel-inner {
  padding: 0.9rem 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  background: var(--menu-panel);
}

@media (max-width: 600px) {
  .accordion-panel-inner {
    grid-template-columns: 1fr;
    padding: 0.9rem 0.9rem 1.2rem;
  }
  .accordion-header {
    font-size: 1.05rem;
    padding: 1rem;
  }
}

.accordion-item.open .dish-row {
  animation: rowIn 0.6s var(--ease) both;
  animation-delay: calc(var(--r, 0) * 40ms);
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.dish-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 2px 6px rgba(62, 39, 25, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.dish-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(62, 39, 25, 0.12);
  border-color: var(--accent);
}

.dish-name {
  font-size: 0.98rem;
  color: var(--dark);
}

.dish-tag {
  font-size: 0.75rem;
  color: #8a6d1f;
  background: #fdf3d8;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.dish-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-size: 0.95rem;
}

/* ---------- Specials (flip cards) ---------- */
.specials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1000px) {
  .specials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .specials-grid { grid-template-columns: 1fr; }
}

.flip-card {
  perspective: 1400px;
  height: 340px;
  cursor: pointer;
  border-radius: 14px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s var(--ease), translate 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.flip-card:hover .flip-card-inner {
  translate: 0 -8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
}

.flip-card-front {
  background: linear-gradient(160deg, var(--dark) 0%, #2a1a16 100%);
  color: #f5e9d8;
  display: flex;
  flex-direction: column;
}

.dish-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #4a332b 0%, #2a1a16 100%);
  transition: transform 0.8s var(--ease);
}

.flip-card:hover .dish-photo {
  transform: scale(1.07);
}

.flip-card-front::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}

.flip-card:hover .flip-card-front::after {
  transform: scaleX(1);
}

.dish-photo-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a332b 0%, #2a1a16 100%);
  color: rgba(245, 233, 216, 0.35);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.flip-card-front-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.2rem;
}

.flip-card-front .dish-index {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.flip-card-front h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.flip-card-front .tap-hint {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245, 233, 216, 0.6);
  margin-top: 0.5rem;
}

.flip-card-back {
  background: white;
  color: var(--dark);
  border: 2px solid var(--accent);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.8rem;
}

.flip-card-back h4 {
  color: var(--primary);
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.flip-card-back h4::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: 0.6rem auto 0;
  background: var(--accent);
}

.flip-card-back p {
  font-size: 0.93rem;
  line-height: 1.6;
}

/* ---------- Reviews ---------- */
#reviews-container {
  margin: 2rem 0;
}

.review-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border-left: 3px solid var(--accent);
  animation: cardIn 0.7s var(--ease) both;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(62, 39, 25, 0.13);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.review-card p {
  margin-bottom: 0.8rem;
  font-style: italic;
  color: var(--dark);
}

.star-rating {
  color: var(--accent);
  letter-spacing: 3px;
}

.review-form {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 36px rgba(62, 39, 25, 0.1);
  margin-top: 2rem;
}

.review-form h2 {
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.review-form input,
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e3d6c3;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fffdf9;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.review-form textarea {
  min-height: 120px;
  resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(180deg, #3e2723 0%, #2e1b17 100%);
  color: #f3e6d8;
  margin-top: auto;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.footer-col h4 {
  color: var(--accent);
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-col p {
  font-size: 0.92rem;
  color: #e8d9c8;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  max-width: 320px;
}

.footer-logo {
  height: 84px;
  width: 84px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  transition: transform 0.8s var(--ease);
}

.footer-logo:hover {
  transform: rotate(360deg);
}

.footer-line a {
  color: #f3e6d8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-line a:hover {
  color: var(--accent);
}

/* Instagram */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
  padding: 0.45rem 1.2rem 0.45rem 0.45rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  color: #f3e6d8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform 0.35s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.35s var(--ease);
}

.social-link .social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  transition: transform 0.5s var(--ease);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.social-link:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.social-link:hover .social-icon {
  transform: rotate(-12deg) scale(1.1);
}

.map-link {
  display: inline-block;
  margin-top: 0.6rem;
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s;
}

.map-link:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.footer-bottom {
  text-align: center;
  padding: 1.2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: #cbb79f;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand p {
    margin: 0 auto;
  }
  .map-link { margin-bottom: 0.5rem; }
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(193, 39, 45, 0.45);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s;
  z-index: 90;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
}

/* ---------- Page transition (curtain) ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #3e2723, #2a1a16);
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.55s var(--ease);
}

.page-transition img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s 0.15s, transform 0.6s 0.15s var(--ease);
}

.page-transition.active {
  transform: translateY(0);
  pointer-events: all;
}

.page-transition.active img {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 768px) {
  .navbar,
  .navbar.scrolled {
    padding: 0.8rem 1.2rem;
  }

  .logo { font-size: 1.15rem; }
  .logo-img { height: 46px; width: 46px; }
  .navbar.scrolled .logo-img { height: 40px; width: 40px; }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1.6rem;
    background: linear-gradient(160deg, #fffaf3 0%, #f6e8cf 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s 0.45s;
    padding: 2rem;
    text-align: center;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s;
  }

  .nav-links li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }

  .nav-links.active li {
    opacity: 1;
    transform: none;
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.12s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.19s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.26s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.33s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.40s; }

  .nav-links a,
  .navbar.scrolled .nav-links a {
    color: var(--dark);
    text-shadow: none;
    font-family: var(--serif);
    font-size: 1.9rem;
    text-transform: none;
    letter-spacing: 0.5px;
  }

  .nav-links a.active,
  .navbar.scrolled .nav-links a.active {
    color: var(--primary);
  }

  .hero { min-height: 420px; }
  .hero p { font-size: 0.9rem; letter-spacing: 0.2em; }
  .hero-content { padding-top: 4.5rem; }
}

@media (max-width: 400px) {
  .logo span { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}
