:root {
  --brand-yellow: #E8B923;
  --brand-blue: #6BA3D6;
  --brand-blue-text: #1d5f9e;
  --brand-dark: #111111;
  --brand-light: #F8F9FA;
  --brand-muted: #4B5563;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--brand-yellow);
  color: var(--brand-dark);
  font-weight: 600;
  border-radius: 0 0 0.375rem 0.375rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.nav-link.active {
  color: var(--brand-yellow);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(20rem, 88vw);
  height: 100%;
  background: #111111;
  color: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

body.mobile-menu-open {
  overflow: hidden;
}

html.mobile-menu-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-backdrop,
  .mobile-menu-panel {
    transition: none;
  }
}

.faq-item {
  overflow: hidden;
}

.faq-answer {
  height: 0;
  overflow: hidden;
}

.faq-item .faq-icon {
  transition: transform 0.35s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item .faq-icon {
    transition: none;
  }
}

.gallery-modal {
  display: none;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal[aria-hidden="true"] {
  display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
}

.square-media > img,
.media-feature > img,
img[data-gallery] {
  max-width: 100%;
  height: auto;
}

.square-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
}

.square-media > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.product-card-thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
}

.product-card-thumb img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: cover;
  object-position: center;
}

.square-media.square-media-sm {
  width: 5.625rem;
  max-width: 5.625rem;
  flex-shrink: 0;
}

.square-media.is-contain {
  background: var(--brand-light);
}

.square-media.is-contain > img {
  padding: 0.5rem;
}

.media-feature {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
}

.media-feature > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

.media-gif {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 0.75rem;
}

.square-media,
.media-feature,
.media-gif {
  box-shadow: none;
}

.photo-grid-btn {
  box-shadow: none;
}

.photo-grid-btn:hover {
  box-shadow: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--brand-dark);
}

.hero-bg > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.4;
}

.site-logo {
  width: auto;
  max-width: none;
}

.site-footer-heading {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.site-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-areas {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2rem;
  row-gap: 0.25rem;
}

.site-footer-areas-wide {
  grid-column: 1 / -1;
}

.site-footer-credit {
  text-decoration: none;
}

.site-footer-credit:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .site-footer-brand {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1f2937;
  }

  .site-footer-brand .site-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer-brand p {
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer-block {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #1f2937;
  }

  .site-footer-block-last {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .site-footer-panel {
    display: inline-block;
    max-width: 100%;
    text-align: left;
    vertical-align: top;
  }

  .site-footer-heading {
    text-align: center;
  }

  .site-footer-panel-centered {
    display: block;
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .site-footer-brand .site-logo {
    margin-left: 0;
  }
}
