:root {
  --green: #5ca230;
  --ink: #000;
  --text: #222;
  --muted: #555;
  --soft: #686868;
  --header-h: 76px;
  --font-display: "Abril Fatface", Georgia, serif;
  --font-body: "Open Sans", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  background: #fff;
  height: var(--header-h);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
}
.header__logo img { height: 62px; width: auto; }
.header__nav { display: flex; gap: 32px; }
.header__nav a {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  transition: color .2s;
}
.header__nav a.is-active,
.header__nav a:hover { color: var(--green); }

.header__toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.header__toggle span {
  display: block;
  width: 20px;
  height: 3px;
  margin: 3px 0;
  background: #222;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.menu-open .header__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .header__toggle span:nth-child(2) { opacity: 0; }
.menu-open .header__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero / form ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 76px) 0 76px;
  background: url("../img/hero.jpg") center / cover no-repeat;
}
.hero__col { width: 100%; max-width: 380px; }
.hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  margin: 0 0 6px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .15);
}

.contact-form { max-width: 350px; }
.contact-form label {
  display: block;
  color: #fff;
  margin: 14px 0 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  height: 38px;
  padding: 6px 12px;
  font: inherit;
  color: #495057;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { height: 62px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #80bdff;
  box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
}
.contact-form input.is-invalid { border-color: #dc3545; }

.captcha { display: flex; align-items: center; gap: 16px; }
.captcha input { flex: 1; }
.captcha__img {
  flex: 0 0 100px;
  height: 38px;
  background: #fff;
  cursor: pointer;
}

.contact-form__actions { text-align: center; margin-top: 22px; }
.contact-form button {
  font: 600 16px/1 var(--font-body);
  letter-spacing: .04em;
  padding: 12px 26px;
  color: #000;
  background: #efefef;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s;
}
.contact-form button:hover { background: #fff; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.contact-form__status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.contact-form__status.is-error { color: #ffd2d2; }

/* ---------- Intro video ---------- */
.intro-video { padding: 64px 0; background: #fff; }
.intro-video__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.intro-video__text { text-align: center; padding-top: 16px; }
.intro-video__text h2 { font-size: 48px; color: var(--muted); }
.intro-video__text p {
  margin: 56px 0 0;
  font-size: 20px;
  line-height: 32px;
  color: var(--muted);
}
.ratio-16x9 { position: relative; padding-top: 56.25%; }
.ratio-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.gallery {
  position: relative;
  padding: 128px 0 40px;
  background: url("../img/gallery-bg.jpg") center / cover no-repeat;
}
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .55);
}
.gallery .container { position: relative; }
.gallery__title {
  font-size: 64px;
  color: var(--ink);
  text-align: center;
  margin-bottom: 26px;
}

.carousel { --per-view: 5; --gap: 16px; }
.carousel__viewport { overflow: hidden; }
.carousel__track {
  display: flex;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .6s ease;
  will-change: transform;
}
.carousel__track li {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
}
.carousel__track button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.carousel__track img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity .2s;
}
.carousel__track button:hover img { opacity: .85; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.carousel__dots button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.carousel__dots button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #000;
  opacity: .25;
}
.carousel__dots button[aria-selected="true"]::before { opacity: .75; }

/* ---------- Location ---------- */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 750px;
  background: #fff;
}
.location__image { background: center / cover no-repeat; min-height: 360px; }
.location__text {
  padding: 112px 64px 64px;
  align-self: start;
}
.location__text h2 { font-size: 64px; color: var(--ink); margin-bottom: 56px; }
.location__text p {
  font-size: 20px;
  line-height: 32px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- Map ---------- */
.map { line-height: 0; background: #e5e3df; }
.map iframe { width: 100%; height: 500px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  padding: 140px 0 90px;
  background: #f8fcfc url("../img/footer-bg.jpg") center / cover no-repeat;
  text-align: center;
  font-family: var(--font-display);
  color: var(--soft);
}
.footer { position: relative; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .25);
}
.footer__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.footer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 4px;
}
.footer__contact { margin: 0; font-size: 15px; line-height: 22px; }
.footer__contact a:hover { color: var(--green); }
.footer__note { margin: 22px 0 22px; font-size: 15px; }
.footer__brand img { width: 270px; height: auto; }
.footer__legal {
  margin: 30px 0 0;
  font-family: var(--font-body);
  font-size: 9px;
  color: var(--text);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 40;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: rgba(0, 0, 0, .55); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 30, 30, .92);
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 100px);
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(30, 30, 30, .6);
  color: #ccc;
  cursor: pointer;
  transition: color .2s;
}
.lightbox button:hover { color: #fff; }
.lightbox__close { top: 0; right: 0; width: 44px; height: 44px; font-size: 32px; line-height: 1; }
.lightbox__nav { top: 50%; width: 54px; height: 90px; margin-top: -45px; font-size: 48px; line-height: 1; }
.lightbox__prev { left: 0; }
.lightbox__next { right: 0; }
.lightbox__count {
  position: absolute;
  top: 12px;
  left: 14px;
  color: #ccc;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .header__inner { padding: 0 30px; }
}

@media (max-width: 991px) {
  .header__toggle { display: block; }
  .header__nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }
  .menu-open .header__nav { max-height: 200px; padding: 8px 16px 16px; }
  .header__nav a { padding: 10px 0; }

  .intro-video__grid { grid-template-columns: 1fr; }
  .intro-video__text p { margin-top: 28px; }
  .carousel { --per-view: 3; }
  .location { grid-template-columns: 1fr; min-height: 0; }
  .location__text { padding: 56px 30px; }
}

@media (max-width: 767px) {
  .header__inner { padding: 0 16px; }
  .hero { padding-top: calc(var(--header-h) + 60px); }
  .hero__col, .contact-form { max-width: none; }
  .hero__title { font-size: 26px; }
  .intro-video__text h2 { font-size: 38px; }
  .gallery { padding-top: 80px; }
  .gallery__title, .location__text h2 { font-size: 48px; }
  .location__text h2 { margin-bottom: 28px; }
  .location__text p, .intro-video__text p { font-size: 17px; line-height: 28px; }
  .carousel { --per-view: 2; --gap: 10px; }
  .footer { padding: 90px 0 70px; }
  .to-top { right: 16px; bottom: 16px; }
  .lightbox__img { max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel__track { transition: none; }
}
