@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 300; font-display: swap; src: url("/fonts/mulish-300.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 400; font-display: swap; src: url("/fonts/mulish-400.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-weight: 700; font-display: swap; src: url("/fonts/mulish-700.woff2") format("woff2"); }
@font-face { font-family: "Shadows Into Light"; font-weight: 400; font-display: swap; src: url("/fonts/shadows-into-light-400.woff2") format("woff2"); }

:root {
  --purple: #505291;
  --purple-dark: #3f4176;
  --yellow: #fdcd20;
  --text: #6a6b6c;
  --text-strong: #3b3c3d;
  --list: rgba(10, 10, 10, 0.85);
  --content: 1080px;
  --gutter: 20px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font: 400 18px/1.75 "Mulish", system-ui, sans-serif;
}

main { flex: 1; padding-bottom: 80px; }

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

a { color: var(--purple); }

p { margin: 0 0 1.4em; }

h1, h2 {
  margin: 0;
  color: var(--purple);
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  letter-spacing: 2px;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1, .h1 { font-size: 30px; line-height: 1.4; }
h2 { font-size: 22px; line-height: 1.4; }

h3 { margin: 0 0 0.6em; color: var(--text-strong); font-size: 18px; font-weight: 400; }

.wrap {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- header ---------- */

.site-header { border-bottom: 2px solid var(--yellow); }

.site-header .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 155px;
}

.brand { align-self: center; padding-top: 6px; }
.brand img { width: 318px; }

.mountains { width: 545px; flex-shrink: 1; min-width: 0; }

.site-nav { position: relative; }

.site-nav ul {
  display: flex;
  justify-content: center;
  gap: 8px 50px;
  margin: 0;
  padding: 30px 0;
  list-style: none;
}

.site-nav a {
  color: var(--purple);
  font-size: 14px;
  line-height: 28px;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--purple); }

.nav-toggle {
  display: none;
  margin: 12px auto;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--purple);
  cursor: pointer;
}
.nav-toggle svg { width: 32px; height: 32px; display: block; }

/* ---------- page furniture ---------- */

.hero {
  height: 230px;
  background-size: cover;
  background-repeat: no-repeat;
}

.page-title { margin: 60px 0 70px; }

.section { margin-top: 60px; }
.section > h2 { margin-bottom: 24px; }
.wrap > .section:first-of-type { margin-top: 70px; }
.section > .h1 { margin-bottom: 24px; }

.lead-image { margin: 20px auto 50px; width: 819px; }

.intro-title { text-align: center; margin-bottom: 60px; }
.intro-title h1 { font-size: 30px; }
.intro-title p {
  margin: 0;
  color: var(--purple);
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1.4;
}

.signature {
  font-family: "Shadows Into Light", cursive;
  font-size: 22px;
  color: var(--text);
}

.plain-list { margin: 20px 0 40px; padding: 0; list-style: none; }

.features {
  margin: 24px 0 30px;
  padding-left: 24px;
  color: var(--list);
  font-size: 16px;
  line-height: 28px;
}
.features li { padding-left: 10px; margin-bottom: 22px; }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}
.grid.cols-2 { --cols: 2; }
.grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.grid.natural img { aspect-ratio: auto; }
.grid.centered { justify-items: center; align-items: center; }
.grid.centered img { width: 320px; }
.grid.centered.wide img { width: 450px; }

.btn {
  display: inline-block;
  padding: 18px 28px;
  border: 0;
  border-radius: 5px;
  background: var(--purple);
  color: #fff;
  font: 700 18px/1.2 "Mulish", sans-serif;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--purple-dark); }
.btn-small { padding: 10px 18px; font-weight: 400; font-size: 17px; }

.center { text-align: center; }

/* ---------- carousel + lightbox ---------- */

.carousel {
  position: relative;
  margin: 0 0 40px;
  --per-view: 5;
  --tile-h: 165px;
}
.carousel.has-arrows { padding: 0 44px; }
.carousel.gallery { --tile-h: 138px; }

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--per-view) - 1) * 9px) / var(--per-view));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track li { scroll-snap-align: start; }

.carousel-track a { display: block; height: var(--tile-h); }
.carousel-track img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 0;
  background: none;
  color: #6b6d8f;
  cursor: pointer;
}
.carousel-arrow svg { width: 100%; height: 100%; display: block; }
.carousel-arrow.prev { left: 0; }
.carousel-arrow.next { right: 0; }
.carousel-arrow:disabled { opacity: 0.3; cursor: default; }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }

.lightbox figure { margin: 0; text-align: center; }
.lightbox img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 130px);
  width: auto;
  margin: 0 auto;
}
.lightbox figcaption { margin-top: 10px; font-size: 16px; min-height: 1.75em; }

.lightbox-count {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 13px;
}

.lightbox button {
  position: fixed;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}
.lightbox button svg { width: 100%; height: 100%; display: block; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 34px; height: 60px; padding: 18px 8px; }
.lightbox .lb-prev { left: 0; border-radius: 0 4px 4px 0; }
.lightbox .lb-next { right: 0; border-radius: 4px 0 0 4px; }
.lightbox .lb-close { top: 16px; right: 16px; width: 36px; height: 36px; padding: 8px; border-radius: 50%; }

/* ---------- links page ---------- */

.link-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 12px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.link-cards a {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 250px;
  padding: 15px 8px 20px;
  background: #fff;
  box-shadow: 0 4px 9px rgba(0, 0, 0, 0.3);
  color: var(--purple);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.link-cards a:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.link-cards img { width: 150px; height: 150px; object-fit: contain; margin-bottom: 22px; }

/* ---------- contact ---------- */

.contact-form { max-width: 700px; margin: 40px 0 80px; }
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--purple);
  border-radius: 3px;
  background: #fff;
  color: var(--text-strong);
  font: 400 15px/1.4 "Mulish", sans-serif;
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; }
.contact-form .form-note { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.contact-form .counter { margin: -6px 0 10px; text-align: right; font-size: 12px; color: #9a9a9a; }
.contact-form .btn { min-width: 280px; padding: 10px 18px; font-weight: 400; font-size: 15px; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: 16px; }
.form-status.ok { color: #2e7d32; }
.form-status.error { color: #b3261e; }

.contact-form + .h1 { margin-bottom: 30px; }
.map { margin-top: 30px; max-width: min(100%, 600px); }

/* ---------- legal text ---------- */

.legal h2 { margin: 40px 0 20px; font-family: "Mulish", sans-serif; font-size: 18px; letter-spacing: 0; }
.legal h3 { margin: 28px 0 18px; }
.legal p { font-size: 16px; line-height: 1.75; }
.legal a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */

.site-footer {
  padding: 30px 0 28px;
  background: var(--purple);
  color: #fff;
  text-align: center;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 50px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.site-footer a {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 24px;
  text-decoration: none;
  text-transform: uppercase;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; font-size: 11px; letter-spacing: 2px; }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .carousel { --per-view: 2; }
  .link-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav ul { gap: 8px 28px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  h1, .h1 { font-size: 24px; }
  h2 { font-size: 19px; }
  .site-header .wrap { flex-direction: column; align-items: center; min-height: 0; gap: 10px; padding-top: 16px; }
  .brand img { width: 260px; }
  .mountains { width: 320px; }
  .nav-toggle { display: block; }
  .site-nav ul { display: none; flex-direction: column; align-items: center; gap: 4px; padding: 0 0 20px; }
  .site-nav.open ul { display: flex; }
  .hero { height: 150px; }
  .page-title { margin: 36px 0 36px; }
  .section { margin-top: 40px; }
  .intro-title p { font-size: 18px; }
  .grid { --cols: 1 !important; }
  .grid.centered img { width: 100%; }
  .carousel { --per-view: 1; --tile-h: 220px; }
  .carousel.has-arrows { padding: 0 36px; }
  .link-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-cards img { width: 120px; height: 120px; }
  .contact-form .btn { width: 100%; min-width: 0; }
  .lightbox img { max-width: calc(100vw - 80px); }
  .site-footer ul { gap: 4px 24px; }
}
