@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/lato-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/lato-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/lato-latin-700-normal.woff2') format('woff2');
}

:root {
  --rust: #c3512f;
  --rust-dark: #883d1f;
  --ink: #342f29;
  --ink-soft: #575149;
  --text: #6f675d;
  --stone: #39342d;
  --stone-deep: #2b2822;
  --stone-line: #575149;
  --paper: #f8f6f2;
  --header-height: 88px;
  --container: 1110px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust); }
a:hover { color: var(--rust-dark); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: #fff;
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(100% - 40px, 760px); }

/* Header: transparent over the hero, solid once the page scrolls. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled,
.inner .site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  width: min(100% - 40px, 1500px);
  margin-inline: auto;
  transition: height .3s ease;
}
.is-scrolled .nav { height: 64px; }

.brand { position: relative; display: block; width: 180px; }
.brand-logo { width: 100%; transition: opacity .3s ease; }
.brand-logo-dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .brand-logo-light,
.inner .brand-logo-light { opacity: 0; }
.is-scrolled .brand-logo-dark,
.inner .brand-logo-dark { opacity: 1; }
.is-scrolled .brand { width: 140px; }

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: .5rem 0;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .3s ease, border-color .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { border-color: currentColor; }
.is-scrolled .nav-links a,
.inner .nav-links a { color: var(--ink); }

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .6);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.is-scrolled .menu-button,
.inner .menu-button { border-color: #e1dcd3; color: var(--ink); }

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-bars { position: relative; }
.menu-bars::before,
.menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-button[aria-expanded='true'] .menu-bars { background: transparent; }
.menu-button[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); background: currentColor; }
.menu-button[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); background: currentColor; }

/* Hero slider */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--stone-deep);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.slide.is-active { opacity: 1; }
.slide picture { display: block; }
.slide picture,
.slide-image {
  width: 100%;
  height: 100%;
}
.slide-image { object-fit: cover; object-position: left top; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 160px;
  background: linear-gradient(rgba(0, 0, 0, .35), transparent);
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  left: max(20px, calc((100% - var(--container)) / 2));
  top: 50%;
  transform: translateY(-50%);
  max-width: calc(100% - 40px);
}
.hero-caption h1,
.hero-caption p {
  display: table;
  margin: 0;
  color: #fff;
  background: rgba(0, 0, 0, .45);
}
.hero-caption h1 {
  padding: .45rem 1rem;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
}
.hero-caption p {
  padding: .3rem 1rem .55rem;
  font-size: 16px;
}

.button {
  display: inline-block;
  padding: .75rem 1.1rem;
  border: 2px solid #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.button-ghost { margin-top: 1.6rem; background: rgba(0, 0, 0, .15); }
.button:hover,
.button:focus-visible { background: #fff; color: var(--ink); }

/* About */
.about { padding: 50px 0 90px; background: #fff; }

.section-heading {
  margin: 0 0 2.6rem;
  color: var(--ink);
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 300;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.section-heading-light { color: #fff; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 5%;
}
.about .two-col p { margin: 0; }
.about strong { color: var(--rust); font-weight: 700; }

.gallery {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ebe8e2;
}
.gallery li { border-right: 1px solid #ebe8e2; }
.gallery li:last-child { border-right: 0; }
.gallery-link {
  display: block;
  padding: 7px;
  transition: opacity .2s ease;
}
.gallery-link:hover,
.gallery-link:focus-visible { opacity: .8; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Contact */
.contact-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 170px;
  overflow: hidden;
}
.contact-banner picture {
  position: absolute;
  inset: 0;
}
.contact-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-banner .section-heading {
  position: relative;
  margin: 0;
  padding: 2.4rem 1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

.contact-body {
  padding: 60px 0 80px;
  background: var(--stone);
  color: #fff;
}

.block-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1rem;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.block-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--stone-line);
}

.map {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 300px;
  width: 100%;
  background: #4a443c;
}
.map iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  height: 100%;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #4a443c, #39342d);
}
.map-placeholder span {
  padding: .7rem 1.2rem;
  border: 2px solid #fff;
}
.map-placeholder .map-note {
  padding: 0;
  border: 0;
  font-size: .8rem;
  font-weight: 400;
  opacity: .8;
}
.map-placeholder:hover span { background: #fff; color: var(--ink); }
.map.is-loaded .map-placeholder { display: none; }

.contact address {
  margin-top: 1rem;
  font-style: normal;
  color: #fff;
}
.contact address a,
.form-fallback a { color: #fff; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid label {
  display: grid;
  gap: .35rem;
  color: #9c9288;
  font-size: 13px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--stone-line);
  background: var(--ink);
  color: #fff;
  font: inherit;
}
.form-grid textarea { min-height: 150px; resize: vertical; }
.form-grid input:focus,
.form-grid textarea:focus { outline: 2px solid var(--rust); outline-offset: 0; border-color: var(--rust); }
.form-trap { position: absolute; left: -9999px; }

.form-submit {
  margin-top: 1.4rem;
  padding: .85rem 3rem;
  border: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.form-submit:hover,
.form-submit:focus-visible { background: var(--rust); color: #fff; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-status { min-height: 1.5em; margin: 1rem 0 0; color: #fff; }

.site-footer {
  padding: 1.6rem 0;
  border-top: 1px solid var(--stone-line);
  background: var(--stone-deep);
  color: #9c9288;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.footer-inner p { margin: 0; }
.site-footer a { color: #9c9288; }
.site-footer a:hover { color: #fff; }
.social-link { display: inline-flex; }

/* Inner pages (privacy, 404) */
.page { padding: calc(var(--header-height) + 60px) 0 80px; background: var(--paper); }
.page-heading { margin: 0 0 1.5rem; color: var(--ink); font-size: clamp(32px, 4vw, 44px); font-weight: 300; }
.page h2 { margin: 2rem 0 .5rem; color: var(--ink); font-size: 19px; }
.page address { font-style: normal; }

/* Lightbox */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 18, 15, .94);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox.is-visible { opacity: 1; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; }
.lightbox figcaption { margin-top: .8rem; font-size: 14px; color: #d8d2c8; }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
  padding: .5rem 1rem;
}
.lightbox-close { top: .5rem; right: .5rem; }
.lightbox-prev { left: .5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: .5rem; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 767px) {
  :root { --header-height: 72px; }
  .brand { width: 140px; }
  .is-scrolled .brand { width: 120px; }
  .menu-button { display: grid; place-items: center; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem 20px 1rem;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .nav-links a,
  .is-scrolled .nav-links a { color: var(--ink); padding: .8rem 0; border-bottom: 1px solid #f0ede7; }
  .nav-links li:last-child a { border-bottom: 0; }

  .site-header.is-menu-open { background: #fff; }
  .is-menu-open .brand-logo-light { opacity: 0; }
  .is-menu-open .brand-logo-dark { opacity: 1; }
  .is-menu-open .menu-button { border-color: #e1dcd3; color: var(--ink); }

  .slide-image { object-position: 30% top; }
  .hero-caption { top: auto; bottom: 18%; transform: none; }

  .two-col,
  .form-grid { grid-template-columns: 1fr; }
  .contact .two-col { gap: 3rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery li { border-bottom: 1px solid #ebe8e2; }
  .gallery li:nth-child(3n) { border-right: 0; }
  .gallery li:nth-last-child(-n + 3) { border-bottom: 0; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0s !important; }
}
