/* ==============================
   기본 설정
============================== */
:root {
  --color-cream: #f7f1e7;
  --color-cream-light: #fffaf3;
  --color-beige: #e8d8c3;
  --color-brown: #51382b;
  --color-brown-dark: #34241c;
  --color-brown-light: #9a755f;
  --color-olive: #6f7651;
  --color-olive-dark: #555d3e;
  --color-white: #ffffff;
  --color-border: #dfd2c2;
  --color-error: #a33a32;
  --color-success: #46613d;
  --shadow-soft: 0 12px 30px rgba(76, 52, 38, 0.1);
  --max-width: 1200px;
  --header-height: 78px;
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--color-brown-dark);
  background-color: var(--color-cream-light);
  font-family:
    "Malgun Gothic",
    "맑은 고딕",
    "Apple SD Gothic Neo",
    Arial,
    sans-serif;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(111, 118, 81, 0.38);
  outline-offset: 3px;
}

.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;
}

/* ==============================
   공통 레이아웃
============================== */
.section {
  padding: 100px 24px;
}

.section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-label {
  margin: 0 0 10px;
  color: var(--color-olive-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-title {
  margin: 0;
  color: var(--color-brown-dark);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.section-description {
  margin: 18px 0 0;
  color: #715f54;
  font-size: 1rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--color-white);
  background-color: var(--color-olive);
}

.button-primary:hover {
  background-color: var(--color-olive-dark);
}

.button-outline-light {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.72);
  background-color: rgba(255, 255, 255, 0.08);
}

.button-outline-light:hover {
  color: var(--color-brown-dark);
  background-color: var(--color-white);
}

/* ==============================
   헤더
============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(81, 56, 43, 0.1);
  background-color: rgba(255, 250, 243, 0.96);
  box-shadow: 0 4px 18px rgba(52, 36, 28, 0.04);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  width: min(100% - 48px, var(--max-width));
  min-height: var(--header-height);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1.15;
}

.brand-logo-en {
  color: var(--color-brown-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 700;
}

.brand-logo-ko {
  margin-top: 4px;
  color: var(--color-brown-light);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.main-navigation {
  font-size: 0.94rem;
  font-weight: 700;
}

.navigation-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.navigation-list a:not(.header-reservation-button) {
  position: relative;
  display: inline-block;
  padding: 8px 0;
}

.navigation-list a:not(.header-reservation-button)::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 2px;
  background-color: var(--color-olive);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.navigation-list a:not(.header-reservation-button):hover::after,
.navigation-list a:not(.header-reservation-button).is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-reservation-button {
  padding: 10px 18px;
  color: var(--color-white);
  border-radius: 999px;
  background-color: var(--color-brown);
}

.header-reservation-button:hover {
  background-color: var(--color-brown-dark);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background-color: transparent;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--color-brown-dark);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================
   히어로
============================== */
.hero-section {
  position: relative;
  display: flex;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
  overflow: hidden;
  background-color: #8c7667;
  background-image: url("images/hero-cafe.jpg");
  background-position: center 48%;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(42, 27, 20, 0.78) 0%,
      rgba(42, 27, 20, 0.58) 48%,
      rgba(42, 27, 20, 0.18) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  padding: 90px 0;
  color: var(--color-white);
}

.hero-kicker {
  margin: 0 0 14px;
  color: #f5dfbf;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.15;
  letter-spacing: -0.05em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.26);
}

.hero-description {
  max-width: 610px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ==============================
   카페 소개
============================== */
.about-section {
  background-color: var(--color-cream-light);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 72px;
}

.about-image-box {
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius-large);
  background-color: var(--color-beige);
  box-shadow: var(--shadow-soft);
}

.about-image-box img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.about-content p:not(.section-label) {
  color: #69584e;
}

.about-content p.about-highlight {
  margin: 24px 0;
  padding-left: 18px;
  border-left: 4px solid var(--color-olive);
  color: var(--color-brown);
  font-size: 1.08rem;
  font-weight: 700;
}

/* ==============================
   인기 메뉴
============================== */
.menu-section {
  background-color: var(--color-cream);
}

.menu-search-box {
  max-width: 560px;
  margin: 28px auto 0;
}

.menu-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-brown-dark);
  background-color: var(--color-white);
}

.menu-search-input::placeholder {
  color: #927f73;
}

.menu-search-input:focus {
  border-color: var(--color-olive);
}

.menu-filter-bar {
  display: flex;
  max-width: 920px;
  margin: 16px auto 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.menu-filter-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.menu-filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.menu-filter-label {
  margin-right: 2px;
  color: #6f5e54;
  font-size: 0.88rem;
  font-weight: 800;
}

.menu-filter-button,
.menu-filter-clear {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: #6f5e54;
  background-color: var(--color-white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.menu-filter-button:hover,
.menu-filter-clear:hover {
  border-color: var(--color-olive);
}

.menu-filter-button.is-selected {
  border-color: var(--color-olive-dark);
  color: var(--color-white);
  background-color: var(--color-olive-dark);
}

.menu-filter-clear {
  flex: 0 0 auto;
  border-color: transparent;
  color: var(--color-brown);
  background-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-filter-button:focus-visible,
.menu-filter-clear:focus-visible {
  outline: 3px solid rgba(105, 119, 78, 0.25);
  outline-offset: 2px;
}

.menu-no-results {
  display: none;
  margin: -12px 0 32px;
  color: #6f5e54;
  text-align: center;
}

.menu-no-results.is-visible {
  display: block;
}

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

.menu-card {
  overflow: hidden;
  border: 1px solid rgba(81, 56, 43, 0.09);
  border-radius: var(--radius-medium);
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-card:hover {
  box-shadow: 0 18px 38px rgba(76, 52, 38, 0.14);
  transform: translateY(-5px);
}

.menu-image-box {
  aspect-ratio: 4 / 3;
  min-height: 220px;
  overflow: hidden;
  background-color: var(--color-beige);
}

.menu-image-box {
  position: relative;
}

.menu-favorite-button {
  position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(81, 56, 43, 0.14); border-radius: 50%; color: var(--color-brown);
  background-color: rgba(255, 255, 255, 0.92); box-shadow: 0 6px 18px rgba(52, 36, 28, 0.16);
  cursor: pointer; font-size: 1.45rem; line-height: 1; place-items: center;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.menu-favorite-button:hover { transform: scale(1.06); }
.menu-favorite-button.is-selected { color: #a33a32; background-color: var(--color-white); }
.menu-favorites-count { display: inline-grid; min-width: 24px; height: 24px; margin-left: 5px; padding: 0 6px; border-radius: 999px; align-items: center; justify-content: center; color: inherit; background-color: rgba(81, 56, 43, 0.1); font-size: 0.78rem; }
.menu-favorites-filter.is-selected .menu-favorites-count { background-color: rgba(255, 255, 255, 0.2); }
.menu-favorites-clear { min-height: 38px; padding: 7px 10px; border: 0; color: var(--color-brown); background-color: transparent; cursor: pointer; font-size: 0.84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.menu-favorites-clear:disabled { opacity: 0.45; cursor: default; }

.menu-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.menu-card:hover .menu-image-box img {
  transform: scale(1.03);
}

.menu-card-content {
  padding: 24px;
}

.menu-card h3 {
  margin: 0;
  color: var(--color-brown-dark);
  font-size: 1.25rem;
}

.menu-card p {
  min-height: 54px;
  margin: 10px 0 22px;
  color: #746359;
  font-size: 0.94rem;
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-card-footer strong {
  color: var(--color-brown);
  font-size: 1.08rem;
}

.menu-card-footer a {
  color: var(--color-olive-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.menu-card-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==============================
   갤러리
============================== */
.gallery-section {
  background-color: var(--color-cream-light);
}

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

.gallery-item {
  position: relative;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-medium);
  background-color: var(--color-beige);
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

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

.gallery-modal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  padding: 72px 88px 32px;
  align-items: center;
  justify-content: center;
  background-color: rgba(26, 18, 14, 0.9);
}

.gallery-modal.is-open {
  display: flex;
}

.modal-content {
  width: min(1180px, 100%);
  text-align: center;
}

.modal-image-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border-radius: var(--radius-small);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.modal-close-button,
.modal-navigation-button {
  display: grid;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  line-height: 1;
  place-items: center;
}

.modal-close-button {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
}

.modal-navigation-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 54px;
  height: 54px;
  font-size: 2.5rem;
  transform: translateY(-50%);
}

.modal-previous-button {
  left: -70px;
}

.modal-next-button {
  right: -70px;
}

.modal-close-button:hover,
.modal-navigation-button:not(:disabled):hover {
  background-color: rgba(255, 255, 255, 0.24);
}

.modal-navigation-button:disabled {
  opacity: 0.25;
  cursor: default;
}

.modal-information {
  margin-top: 18px;
  color: var(--color-white);
}

.modal-counter {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.modal-description {
  margin: 6px 0 0;
  font-size: 1rem;
}

/* ==============================
   고객 후기
============================== */
.reviews-section {
  background-color: #ede4d8;
}

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

.review-card {
  padding: 30px;
  border: 1px solid rgba(81, 56, 43, 0.08);
  border-radius: var(--radius-medium);
  background-color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.review-rating {
  display: inline-block;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--color-olive-dark);
  background-color: rgba(111, 118, 81, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
}

.review-text {
  min-height: 118px;
  margin: 22px 0 28px;
  color: #5f5047;
}

.review-card h3 {
  margin: 0;
  font-size: 1rem;
}

.review-purpose {
  margin: 4px 0 0;
  color: #8a776b;
  font-size: 0.88rem;
}

/* ==============================
   FAQ
============================== */
.faq-section {
  background-color: var(--color-cream-light);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 72px;
}

.faq-heading {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.faq-search-box {
  margin-top: 28px;
}

.faq-search-input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-brown-dark);
  background-color: var(--color-white);
}

.faq-search-input::placeholder {
  color: #927f73;
}

.faq-search-input:focus {
  border-color: var(--color-olive);
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-no-results {
  display: none;
  margin: 0;
  padding: 28px 4px;
  border-bottom: 1px solid var(--color-border);
  color: #6f5e54;
}

.faq-no-results.is-visible {
  display: block;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item h3 {
  margin: 0;
}

.faq-button {
  display: flex;
  width: 100%;
  min-height: 76px;
  padding: 20px 4px;
  border: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 1.04rem;
  font-weight: 800;
}

.faq-button:hover {
  color: var(--color-olive-dark);
}

.faq-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background-color: var(--color-cream);
  font-size: 1.24rem;
  font-weight: 400;
  place-items: center;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 44px 22px 4px;
  color: #6f5e54;
}

.faq-answer p {
  margin: 0;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ==============================
   예약 및 문의
============================== */
.reservation-section {
  color: var(--color-white);
  background-color: var(--color-brown);
}

.reservation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 64px;
}

.reservation-intro .section-label {
  color: #d9d6b8;
}

.reservation-intro .section-title {
  color: var(--color-white);
}

.reservation-intro > p:not(.section-label) {
  color: rgba(255, 255, 255, 0.78);
}

.reservation-note {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-small);
  background-color: rgba(255, 255, 255, 0.07);
}

.reservation-note p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.reservation-form {
  padding: 34px;
  border-radius: var(--radius-large);
  color: var(--color-brown-dark);
  background-color: var(--color-cream-light);
  box-shadow: 0 22px 60px rgba(26, 18, 14, 0.24);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-group {
  min-width: 0;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-group label span {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #cfc0ae;
  border-radius: var(--radius-small);
  color: var(--color-brown-dark);
  background-color: var(--color-white);
}

.form-group input,
.form-group select {
  min-height: 50px;
  padding: 0 14px;
}

.form-group textarea {
  min-height: 132px;
  padding: 13px 14px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-olive);
}

.form-group .input-error {
  border-color: var(--color-error);
  background-color: #fff9f8;
}

.error-message {
  min-height: 22px;
  margin: 5px 0 0;
  color: var(--color-error);
  font-size: 0.82rem;
}

.form-submit-button {
  width: 100%;
  margin-top: 8px;
  border: 0;
}

.form-success-message {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--color-success);
  font-weight: 800;
  text-align: center;
}

/* ==============================
   매장 정보
============================== */
.store-section {
  background-color: var(--color-cream);
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
}

.store-information,
.map-placeholder {
  min-height: 360px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.store-information {
  padding: 34px;
  background-color: var(--color-white);
}

.store-list {
  margin: 0;
}

.store-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #eee5da;
}

.store-list > div:last-child {
  border-bottom: 0;
}

.store-list dt {
  color: var(--color-olive-dark);
  font-weight: 800;
}

.store-list dd {
  margin: 0;
  color: #65554c;
}

.store-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.map-placeholder {
  display: flex;
  padding: 32px;
  border: 1px dashed #b9aa97;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--color-brown);
  background:
    linear-gradient(rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.44)),
    repeating-linear-gradient(
      45deg,
      #d9d2bf,
      #d9d2bf 18px,
      #e5dfcf 18px,
      #e5dfcf 36px
    );
  text-align: center;
}

.map-pin {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50% 50% 50% 0;
  color: var(--color-white);
  background-color: var(--color-olive);
  line-height: 1;
  place-items: center;
  transform: rotate(-45deg);
}

.map-pin::first-letter {
  transform: rotate(45deg);
}

.map-placeholder strong {
  font-size: 1.22rem;
}

.map-placeholder p {
  margin: 6px 0 0;
  color: #75655b;
}

/* ==============================
   맨 위로 이동 버튼
============================== */
.scroll-top-button {
  position: fixed;
  z-index: 1200;
  right: 28px;
  bottom: 28px;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(81, 56, 43, 0.14);
  border-radius: 50%;
  color: var(--color-white);
  background-color: var(--color-brown);
  box-shadow: 0 10px 26px rgba(52, 36, 28, 0.22);
  cursor: pointer;
  font-size: 1.35rem;
  opacity: 0;
  pointer-events: none;
  place-items: center;
  transform: translateY(12px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover {
  background-color: var(--color-brown-dark);
}

/* ==============================
   푸터
============================== */
.site-footer {
  padding: 58px 24px 22px;
  color: rgba(255, 255, 255, 0.76);
  background-color: var(--color-brown-dark);
}

.footer-inner {
  display: grid;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 40px;
}

.footer-brand strong {
  display: block;
  color: var(--color-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.footer-brand span {
  display: block;
  margin-top: 3px;
  color: #d4c1ad;
  font-size: 0.8rem;
}

.footer-brand p,
.footer-information p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.footer-navigation-list {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-navigation a:hover {
  color: var(--color-white);
}

.footer-bottom {
  width: min(100%, var(--max-width));
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0;
}

/* ==============================
   노트북과 태블릿
============================== */
@media (max-width: 1024px) {
  .section {
    padding: 86px 24px;
  }

  .main-navigation {
    font-size: 0.88rem;
  }

  .navigation-list {
    gap: 15px;
  }

  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout,
  .faq-layout,
  .reservation-layout {
    gap: 44px;
  }

  .review-text {
    min-height: 150px;
  }
}

/* ==============================
   모바일 메뉴와 1열 중심 배치
============================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 72px 20px;
  }

  .header-inner {
    width: min(100% - 32px, var(--max-width));
  }

  .mobile-menu-button {
    display: block;
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 0 0 16px 16px;
    background-color: var(--color-cream-light);
    box-shadow: var(--shadow-soft);
  }

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

  .navigation-list {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .main-navigation a {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
  }

  .main-navigation a:hover {
    background-color: var(--color-cream);
  }

  .navigation-list a:not(.header-reservation-button)::after {
    right: 14px;
    bottom: 6px;
    left: 14px;
  }

  .header-reservation-button {
    margin-top: 4px;
    text-align: center;
  }

  .hero-section {
    min-height: 720px;
    background-position: 58% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(42, 27, 20, 0.78) 0%,
      rgba(42, 27, 20, 0.63) 70%,
      rgba(42, 27, 20, 0.48) 100%
    );
  }

  .hero-content {
    width: min(100% - 40px, var(--max-width));
    padding: 72px 0;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10vw, 3.8rem);
  }

  .about-layout,
  .faq-layout,
  .reservation-layout,
  .store-layout {
    grid-template-columns: 1fr;
  }

  .about-image-box,
  .about-image-box img {
    min-height: 360px;
  }

  .about-content {
    order: -1;
  }

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

  .gallery-item {
    min-height: 220px;
  }

  .gallery-modal {
    padding-right: 64px;
    padding-left: 64px;
  }

  .modal-previous-button {
    left: -52px;
  }

  .modal-next-button {
    right: -52px;
  }

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

  .review-text {
    min-height: auto;
  }

  .faq-heading {
    position: static;
  }

  .reservation-form {
    padding: 26px;
  }

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

  .form-group-full {
    grid-column: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-navigation {
    grid-column: 1 / -1;
  }

  .footer-navigation-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ==============================
   작은 모바일 화면
============================== */
@media (max-width: 560px) {
  .section {
    padding: 64px 18px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-section {
    min-height: 680px;
  }

  .hero-content {
    width: min(100% - 36px, var(--max-width));
  }

  .hero-title br {
    display: none;
  }

  .hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .about-image-box,
  .about-image-box img {
    min-height: 290px;
  }

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

  .menu-image-box,
  .gallery-item {
    min-height: 230px;
  }

  .gallery-modal {
    padding: 70px 14px 24px;
  }

  .modal-image-area {
    padding: 0 46px;
  }

  .modal-image {
    max-height: calc(100vh - 210px);
  }

  .modal-navigation-button {
    width: 42px;
    height: 42px;
    font-size: 2rem;
  }

  .modal-previous-button {
    left: 0;
  }

  .modal-next-button {
    right: 0;
  }

  .reservation-form {
    padding: 22px 18px;
  }

  .store-information {
    min-height: auto;
    padding: 24px 20px;
  }

  .store-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .map-placeholder {
    min-height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-navigation {
    grid-column: auto;
  }

  .footer-navigation-list {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .scroll-top-button {
    right: 18px;
    bottom: 18px;
    width: 48px;
    height: 48px;
  }
}


@media (max-width: 760px) {
  .menu-filter-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-filter-clear {
    align-self: flex-end;
  }
}

/* ==============================
   인기 메뉴 카드와 갤러리 사진 스크롤 등장 효과
============================== */
.menu-card.reveal-on-scroll,
.gallery-item.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.menu-card.reveal-on-scroll.is-revealed,
.gallery-item.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .menu-card.reveal-on-scroll,
  .gallery-item.reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==============================
   즐겨찾기 알림
============================== */
.favorite-toast {
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: 36px;
  max-width: calc(100% - 150px);
  padding: 11px 18px;
  border-radius: 999px;
  color: var(--color-white);
  background-color: rgba(52, 36, 28, 0.94);
  box-shadow: 0 10px 28px rgba(52, 36, 28, 0.24);
  font-size: 0.9rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.favorite-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 768px) {
  .favorite-toast {
    bottom: 92px;
    max-width: calc(100% - 40px);
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-toast {
    transition: opacity 0.2s ease;
    transform: translate(-50%, 0);
  }
}
