/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #f4f0e6;
  color: #2b1d14;
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
.custom-cursor-dot {
  width: 8px; height: 8px;
  background-color: #c1652f;
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10002;
  box-shadow: 0 0 0 3px rgba(244, 240, 230, 0.9);
}

.custom-cursor-outline {
  width: 40px; height: 40px;
  border: 1.5px solid #c1652f;
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10001;
  background: rgba(193, 101, 47, 0.08);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.custom-cursor-outline.hover-active {
  width: 58px; height: 58px;
  border-color: #c1652f;
  background: rgba(193, 101, 47, 0.16);
}

/* PROGRESS BAR */
.progress-bar {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: #c1652f;
  z-index: 1000;
}

/* NAVBAR */
.main-navbar {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 90px;
  background: rgba(244, 240, 230, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 5vw;
  z-index: 999;
  border-bottom: 1px solid rgba(193, 101, 47, 0.45);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem; font-weight: 400;
  color: #2b1d14;
}

.nav-links { display: flex; gap: 2.2rem; }

.nav-item {
  font-size: 0.7rem; font-weight: 600;
  color: #c1652f; text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  letter-spacing: 1.5px; text-transform: uppercase;
  opacity: 1;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-item:hover, .nav-item.active { color: #a8531f; opacity: 1; }

.menu-toggle {
  display: none; background: none; border: none;
  width: 30px; height: 30px;
  position: relative; cursor: pointer; z-index: 1010;
}

.menu-toggle .hamburger {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 2px;
  background-color: #2b1d14;
  transition: background-color 0.3s ease;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: ''; position: absolute;
  width: 24px; height: 2px;
  background-color: #2b1d14;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.menu-toggle .hamburger::before { top: -8px; left: 0; }
.menu-toggle .hamburger::after { bottom: -8px; left: 0; }

.menu-toggle.is-active .hamburger { background-color: transparent; }
.menu-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

/* PANELS */
.panel {
  min-height: 100vh;
  padding: 140px 8vw 80px 8vw;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

#menu.panel {
  align-items: flex-start;
  padding-top: 130px;
}

.light-panel { background: #f4f0e6; }
.dark-panel {
  background: #14110f;
  color: #f4f0e6;
  position: relative;
}

.section-inner { width: 100%; max-width: 1000px; }
.section-inner.narrow { max-width: 640px; }
.section-inner.center { text-align: center; margin: 0 auto; }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: inherit;
}

h1 { font-size: 5rem; line-height: 1.08; }
h2 { font-size: 2.6rem; line-height: 1.25; margin-bottom: 1.5rem; }
h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }

.italic-serif { font-style: italic; color: #c1652f; }

p {
  font-size: 1.05rem; line-height: 1.85;
  opacity: 0.85; margin-bottom: 1.2rem; font-weight: 300;
}
p:last-of-type { margin-bottom: 1.4rem; }

/* HERO */
.hero {
  text-align: center;
  background:
    linear-gradient(rgba(244, 240, 230, 0.28), rgba(244, 240, 230, 0.38)),
    url('https://images.unsplash.com/photo-1495774856032-8b90bbb32b32?q=80&w=2400') center/cover no-repeat fixed;
}

.hero-sub {
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: #c1652f; display: block; margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.05rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #5c4836;
  opacity: 0.8;
  margin-top: 1.4rem;
  margin-bottom: 0;
}

/* EYEBROW LABEL */
.eyebrow {
  display: block;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: #c1652f; margin-bottom: 1.6rem;
}
.eyebrow.light { color: #d99a6f; }

/* MENU / STORY GRID */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.story-item {
  display: flex; flex-direction: column;
}

.story-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 1.6rem;
  box-shadow: 0 18px 40px rgba(43, 29, 20, 0.18);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.story-item:hover img {
  transform: scale(1.02);
  box-shadow: 0 24px 50px rgba(43, 29, 20, 0.24);
}

.story-text {
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(43, 29, 20, 0.15);
}

.story-text h3 { font-size: 1.5rem; margin-bottom: 0.4rem; color: #2b1d14; }

.story-sub {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #8a6b53;
  opacity: 1;
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
}

/* ABOUT / PROLOGUE */
#about.panel {
  min-height: auto;
  align-items: flex-start;
  padding-top: 130px;
  padding-bottom: 110px;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1000px;
}

.about-text { flex: 1 1 440px; max-width: 480px; }

.about-image-wrap {
  position: relative;
  flex: 1 1 380px;
  max-width: 420px;
}

.about-img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 460px;
  position: relative;
  z-index: 2;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 100%;
  height: 100%;
  border: 1px solid #c1652f;
  z-index: 1;
}

.ornament-dot {
  position: absolute;
  left: -70px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(244, 240, 230, 0.4);
  border-radius: 50%;
  display: none;
}

#about .ornament-dot {
  border-color: rgba(43, 29, 20, 0.25);
}

@media (min-width: 1100px) {
  .ornament-dot { display: block; }
}

/* EPILOGUE */
#visit.panel {
  min-height: auto;
  padding: 70px 8vw 70px 8vw;
}

.epilogue-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1000px;
  gap: 2rem;
}

.epilogue-left h2 {
  font-size: 2.6rem;
  color: #f4f0e6;
  margin-bottom: 1rem;
}

.epilogue-left .address {
  font-size: 0.95rem;
  color: rgba(244, 240, 230, 0.6);
  margin-bottom: 0;
  opacity: 1;
}

.epilogue-right {
  text-align: right;
  flex-shrink: 0;
}

.follow-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244, 240, 230, 0.55);
  margin-bottom: 0.6rem;
}

.author-credit {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  color: #c1652f;
  letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body { cursor: auto; }
  .custom-cursor-dot, .custom-cursor-outline { display: none !important; }

  .menu-toggle { display: flex; }

  /* iOS Safari renders `background-attachment: fixed` incorrectly when
     combined with `background-size: cover` on non-body elements — it
     sizes the image against the wrong viewport, which makes it render
     as a massively zoomed-in, blurry crop instead of the full photo.
     Switching to `scroll` on small screens fixes it without affecting
     the parallax-style fixed background on desktop. */
  .hero { background-attachment: scroll; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 100%; height: 100vh;
    background: #f4f0e6;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 3.5rem; z-index: 1000;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }
  .nav-links.is-open { right: 0; }
  .nav-item { font-size: 1.2rem; }

  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.8rem; }

  .panel { padding: 120px 6vw 60px 6vw; }

  #about.panel { padding: 100px 6vw 60px 6vw; }

  .story-grid { grid-template-columns: 1fr; }
  .story-item img { height: auto; aspect-ratio: 4 / 5; object-position: center; }

  .about-flex { flex-direction: column; gap: 2.5rem; }
  .about-image-wrap { max-width: 100%; }
  .about-img { height: 320px; }
  .about-image-wrap::after { right: -10px; bottom: -10px; }

  #visit.panel { padding: 70px 6vw 70px 6vw; }

  .epilogue-flex { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .epilogue-right { text-align: left; }
  .epilogue-left h2 { font-size: 2rem; }
}
