:root {
  --text: #666;
  --heading: #333;
  --link: #2ea3f2;
  --line: #e6e6e6;
  --footer: #222;
  --footer-deep: #171717;
  --white: #fff;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

#page-container {
  overflow-x: hidden;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 18px;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 16px 1.3rem;
  padding: 0;
}

table {
  border-collapse: collapse;
  margin: 0 0 16px;
}

td {
  padding: 0 16px 4px 0;
  vertical-align: top;
}

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

.container {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

#main-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 66px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

#logo {
  width: 36px;
  height: 36px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: #666;
  font-size: 14px;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--link);
  text-decoration: none;
}

.mobile-menu-button {
  display: none;
  align-items: center;
  gap: 12px;
  color: #666;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--link);
  content: "";
}

.mobile-menu-icon {
  position: relative;
}

.mobile-menu-icon::before {
  position: absolute;
  top: -7px;
}

.mobile-menu-icon::after {
  position: absolute;
  top: 7px;
}

#main-content {
  padding-top: 66px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.hero::before,
.image-band::before {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  content: "";
}

.hero-full {
  min-height: calc(100vh - 66px);
}

.hero-short {
  min-height: 300px;
}

.hero-content,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: 46px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.34);
}

.hero-copy {
  color: #fff;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.content-section {
  padding: 54px 0;
}

.copy {
  max-width: 1080px;
}

.image-band {
  position: relative;
  min-height: 240px;
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}

.accordion {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border: 1px solid var(--line);
  border-top: 0;
}

.accordion-title {
  position: relative;
  width: 100%;
  padding: 20px 48px 20px 20px;
  color: #333;
  background: #fff;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.accordion-title::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--link);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
  content: "+";
}

.accordion-item.open .accordion-title::after {
  content: "−";
}

.accordion-content {
  display: none;
  padding: 0 20px 22px;
}

.accordion-item.open .accordion-content {
  display: block;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}

.contact-form label {
  display: block;
  margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  color: #555;
  background: #eee;
  border: 0;
  font: inherit;
}

.contact-form button {
  padding: 10px 22px;
  color: var(--link);
  background: #fff;
  border: 2px solid var(--link);
  border-radius: 3px;
  font: inherit;
  cursor: pointer;
}

.contact-form button:hover {
  color: #fff;
  background: var(--link);
}

.form-status {
  margin-top: 12px;
}

.gallery-section {
  padding-bottom: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 400 / 284;
  background: #eee;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--link);
  background: rgba(255, 255, 255, 0.82);
  font-size: 38px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.attachment-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.text-page {
  padding-top: 76px;
}

.legal-copy {
  max-width: 860px;
}

.legal-copy h1 {
  margin-top: 12px;
}

.legal-copy h2 {
  margin-top: 28px;
  font-size: 22px;
}

.attachment-page h1 {
  margin-bottom: 28px;
}

.attachment-page figure {
  margin: 0 0 22px;
}

.attachment-page img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #f4f4f4;
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1200px);
  max-height: 82vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 34px;
  color: #fff;
}

.lightbox button {
  position: absolute;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 28px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: none;
  width: 40px;
  height: 40px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 3px;
  font-size: 24px;
  cursor: pointer;
}

.scroll-top.visible {
  display: block;
}

#main-footer {
  background: var(--footer);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 15px 0;
  background: #2d2d2d;
}

.footer-nav a {
  color: #bbb;
}

.footer-bottom {
  padding: 15px 0;
  color: #666;
  background: var(--footer-deep);
  text-align: center;
}

@media (max-width: 980px) {
  .container {
    width: 90%;
  }

  .mobile-menu-button {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 5%;
    left: 5%;
    display: none;
    background: #fff;
    border-top: 3px solid var(--link);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    display: block;
    padding: 5px 0;
  }

  .site-nav li {
    border-bottom: 1px solid #f0f0f0;
  }

  .site-nav a {
    display: block;
    padding: 10px 16px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    width: calc(100% - 46px);
    margin-right: 23px;
    margin-left: 23px;
  }

  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .mobile-menu-button span:first-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .hero,
  .image-band {
    background-attachment: scroll;
  }

  .hero-full {
    min-height: 560px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .content-section {
    padding: 38px 0;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}
