:root {
  color-scheme: light;
  color: #2f1410;
  background: #ffe3bf;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffeed9;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fde6c8;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 20, 16, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-logo {
  color: #7f2f21;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: #7f2f21;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #51211a;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(47, 20, 16, 0.15);
  background: transparent;
  color: #7f2f21;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
}

.menu-toggle span {
  width: 1.35rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  display: block;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(180deg, rgba(15, 6, 4, 0.2), rgba(15, 6, 4, 0.62)),
    url("images/hero.jpg");
  background-size: cover;
  background-position: center center;
  color: #ffeed9;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 6, 4, 0.22) 0%, rgba(15, 6, 4, 0.75) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(780px, calc(100% - 2rem));
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 0;
  z-index: 1;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  color: #f2e8e1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 1.2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
}

.hero-subtitle {
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 1.35vw, 1.45rem);
  max-width: 640px;
  color: #f7f0eb;
}

.parallax-panel {
  position: relative;
  overflow: hidden;
  height: clamp(280px, 50vh, 600px);
  background: transparent;
}

.parallax-inner {
  position: absolute;
  left: 0;
  right: 0;
  top: -55%;
  bottom: -55%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: translateY(0);
  will-change: transform;
}

.parallax-panel--image1 .parallax-inner {
  background-image: url("images/scrolling1.jpg");
}

.parallax-panel--image2 .parallax-inner {
  background-image: url("images/scrolling2.jpg");
}

.parallax-panel--image3 .parallax-inner {
  background-image: url("images/scrolling3.jpg");
}

.parallax-panel--image4 .parallax-inner {
  background-image: url("images/scrolling4.jpg");
}

.parallax-panel--image5 .parallax-inner {
  background-image: url("images/scrolling5.jpg");
}

.section-block {
  padding: 5rem 0 5.5rem;
  background: #ffeed9;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: start;
}

.section-heading-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
}

.section-heading {
  margin: 0;
  font-size: clamp(1rem, 3vw, 2.25rem);
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #7f2f21;
  position: relative;
}

.section-heading::after {
  content: "";
  display: block;
  width: 4rem;
  height: 0.25rem;
  background: #7f2f21;
  margin-left: auto;
  margin-top: 1rem;
  border-radius: 999px;
}

.section-heading-subtitle {
  margin: 0;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.45;
  color: #7f2f21;
  max-width: 16rem;
}

.legal-main .container {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.legal-main .section-block {
  padding: 3rem 0;
  font-size: 1.25rem;
}

.page-title {
  font-size: clamp(2.75rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  color: #7f2f21;
}

.legal-main a {
  color: #7f2f21;
  text-decoration: none;
}

.legal-main a:hover,
.legal-main a:focus-visible {
  text-decoration: underline;
}

.legal-heading {
  margin: 2rem 0 1rem;
  font-size: clamp(1.2rem, 1.3vw, 1.4rem);
  line-height: 1.35;
  color: #7f2f21;
  font-weight: 700;
}

.legal-subheading {
  margin: 1.5rem 0 0.75rem;
  font-size: clamp(1rem, 1.05vw, 1.15rem);
  line-height: 1.4;
  color: #7f2f21;
  font-weight: 700;
}

.section-figure {
  margin: 2rem 0 0;
}

.section-figure img {
  width: 80%;
  display: block;
  border-radius: 1.5rem;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.12);
}

.section-copy {
  color: #7f2f21;
  font-size: 1.25rem;
  line-height: 1.75;
}

.section-copy p {
  margin: 0 0 1.5rem;
}

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

.gallery-section {
  padding: 4rem 0;
  background: #ffeed9;
}

.gallery-frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.site-footer {
  background: #ffeed9;
  border-top: 1px solid rgba(47, 20, 16, 0.08);
  padding: 2rem 0;
}

  .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: #4f1d14;
  }

  .footer-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .footer-nav a {
    color: #7f2f21;
    text-decoration: none;
    font-weight: 500;
  }

  .footer-nav a:hover,
  .footer-nav a:focus-visible {
    color: #51211a;
  }

.footer-copy {
  color: #7f2f21;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 3.6rem;
  height: 3.6rem;
  border: none;
  border-radius: 50%;
  background: #7f2f21;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 30;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #51211a;
}

.gallery-viewer {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: 1.5rem;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.12);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.gallery-image.fade-out {
  opacity: 0;
}

.gallery-button {
  border: 1px solid rgba(127, 47, 33, 0.2);
  background: rgba(246, 239, 230, 0.9);
  color: #7f2f21;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-button:hover,
.gallery-button:focus-visible {
  background: #fbf6ee;
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  .gallery-frame {
    grid-template-columns: 1fr;
  }

  .gallery-button {
    width: 100%;
    border-radius: 1rem;
  }
}

@media (max-width: 760px) {
  .site-nav {
    gap: 1rem;
  }

  .hero {
    min-height: 72vh;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 0;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .site-logo {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    white-space: nowrap;
  }

  .site-nav {
    display: flex;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    max-height: 0;
    margin-top: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, margin-top 0.35s ease, padding 0.35s ease, opacity 0.25s ease, visibility 0.35s ease, border-color 0.35s ease;
  }

  .site-nav.open {
    max-height: 24rem;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top-color: rgba(47, 20, 16, 0.08);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    order: 2;
  }

  .hero-content {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

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

  .section-heading-wrap {
    align-items: flex-start;
    text-align: left;
  }

  .section-heading {
    font-size: clamp(2.5rem, 9vw, 3.4rem);
  }

  .section-heading::after {
    margin-left: 0;
  }
}
