/* ==========================================================================
   HCK — Landing Page
   Rebuilt lean: no Bootstrap / jQuery / bower deps. Same palette & layout
   logic as the original template.
   ========================================================================== */

:root {
  /* Palette (kept from original design) */
  --color-primary: #aabf00;
  /* lime green — brand accent */
  --color-accent: #f48232;
  /* orange — captions / highlights */
  --color-hover: #6ca5d5;
  /* blue — hover state */
  --color-ink: #4a4a4a;
  /* headings */
  --color-body: #585858;
  /* body text */
  --color-body-soft: #383838;
  --color-gray-section: #6e7274;
  --color-pale-blue: #eaf5f7;
  --color-off-white: #f1f1f1;
  --color-white: #ffffff;

  --font-base: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1140px;
  --nav-h: 90px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 3px solid var(--color-hover);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 3px;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-hover);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--color-white);
  min-height: var(--nav-h);
  border-bottom: 5px solid var(--color-primary);
  transition: box-shadow 0.3s var(--ease);
}

.navbar.is-scrolled {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.navbar__inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.navbar__brand {
  display: flex;
  align-items: center;
}

.navbar__logo {
  height: 56px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  padding: 8px 0;
  transition: color 0.2s var(--ease);
}

.navbar__link:hover {
  color: var(--color-primary);
}

.navbar__link.is-active {
  color: var(--color-primary);
}

.navbar__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 650px;
  margin-top: var(--nav-h);
  overflow: hidden;
  background-color: var(--color-off-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.01);
  /* avoid edge gap with fixed attachment */
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 0 20px;
}

.hero__eyebrow {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero__qr {
  width: 100px;
  margin: 0 auto 24px;
  border-radius: 4px;
}

.hero__badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__badges img {
  width: 150px;
}

/* Floating call-to-action card, straddles hero / about */
.cta-float {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: -50px;
}

.cta-float__btn {
  background: var(--color-white);
  color: var(--color-ink);
  border: none;
  border-bottom: 7px solid var(--color-primary);
  border-radius: 2px;
  padding: 22px 38px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: border-color 0.3s var(--ease), transform 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cta-float__btn i {
  font-size: 20px;
  color: var(--color-primary);
}

.cta-float__btn:hover {
  border-bottom-color: var(--color-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 120px 0 90px;
  background: var(--color-white);
}

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 56px;
  align-items: center;
}

.about__image img {
  border-radius: 4px;
}

.about__text h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 24px;
}

.about__text p {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--color-body-soft);
}

/* ==========================================================================
   Facilities
   ========================================================================== */
.facilities {
  background-color: var(--color-gray-section);
  padding: 90px 0;
}

.facilities__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.facilities__gallery {
  display: flex;
  gap: 16px;
}

.facilities__preview {
  flex: 1;
  height: 360px;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  border-bottom: 4px solid var(--color-accent);
}

.facilities__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s var(--ease);
}

.facilities__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
}

.facilities__thumb {
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  background: none;
  opacity: 0.65;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}

.facilities__thumb img {
  height: 60px;
  width: 100%;
  object-fit: cover;
}

.facilities__thumb:hover {
  opacity: 1;
}

.facilities__thumb.is-active {
  opacity: 1;
  border-color: var(--color-accent);
}

.facilities__list h2 {
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 28px;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 15px;
}

.checklist i {
  color: var(--color-primary);
  font-size: 14px;
  flex-shrink: 0;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  padding: 90px 0;
  background: var(--color-white);
}

.gallery__header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #dcdcdc;
}

.gallery__header h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--color-body-soft);
  margin-bottom: 12px;
}

.gallery__header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-primary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.gallery__item {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.12);
}

.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background-color: var(--color-gray-section);
  padding: 110px 0;
}

.contact__header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact__header h2 {
  font-size: 32px;
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 12px;
}

.contact__header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-off-white);
  border-radius: 3px;
  padding: 0 16px;
  height: 54px;
}

.field i {
  color: var(--color-primary);
  font-size: 18px;
  border-right: 1px solid var(--color-primary);
  padding-right: 12px;
}

.field input,
.field textarea {
  flex: 1;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-ink);
  padding: 14px 0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9a9a;
}

.field--textarea {
  height: 100%;
  align-items: flex-start;
  padding-top: 14px;
}

.field--textarea i {
  margin-top: 4px;
}

.field--textarea textarea {
  resize: none;
  height: 100%;
  min-height: 176px;
}

.contact__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 20px;
}

.contact__note {
  color: var(--color-white);
  font-size: 13px;
  margin: 0;
}

/* ==========================================================================
   Address
   ========================================================================== */
.address {
  padding: 80px 0;
  background: var(--color-pale-blue);
}

.address__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: stretch;
}

.address__lede {
  font-size: 18px;
  text-transform: uppercase;
  color: var(--color-ink);
  font-weight: 300;
  margin-bottom: 24px;
}

.address__title {
  color: var(--color-primary);
  font-size: 18px;
  margin-bottom: 14px;
}

.address__text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-body-soft);
  margin-bottom: 24px;
}

.address__emails {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address__emails li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.address__emails i {
  color: var(--color-accent);
}

.address__emails a:hover {
  color: var(--color-hover);
}

.address__map {
  min-height: 320px;
  border-radius: 4px;
  overflow: hidden;
}

.address__map iframe {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 26px 0;
  font-weight: 300;
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
  z-index: 40;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-hover);
}

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
  background: var(--color-white);
  color: var(--color-ink);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  padding: 16px 16px 16px 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
  pointer-events: none;
}

.toast.is-visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.toast.toast--error {
  border-left-color: #e2574c;
}

.toast>i.fa-solid {
  font-size: 19px;
  color: var(--color-primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.toast.toast--error>i.fa-solid {
  color: #e2574c;
}

.toast__message {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  flex: 1;
}

.toast__close {
  background: none;
  border: none;
  color: #b0b0b0;
  font-size: 13px;
  padding: 2px;
  flex-shrink: 0;
  transition: color 0.2s var(--ease);
}

.toast__close:hover {
  color: var(--color-ink);
}

@media (max-width: 480px) {
  .toast {
    left: 16px;
    right: 16px;
    top: 16px;
    max-width: none;
    transform: translateY(-130%);
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
  animation: modal-in 0.2s var(--ease);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-white);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s var(--ease);
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
  top: 24px;
  right: 24px;
}

.lightbox__nav--prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image {
    max-width: 420px;
    margin: 0 auto 32px;
  }

  .facilities__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .address__grid {
    grid-template-columns: 1fr;
  }

  .address__map {
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    border-bottom: 3px solid var(--color-primary);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
  }

  .navbar__menu.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar__link {
    width: 100%;
    padding: 12px 0;
  }

  .hero {
    height: 560px;
  }

  .hero__bg {
    background-attachment: scroll;
  }

  .contact__row {
    grid-template-columns: 1fr;
  }

  .contact__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact__footer .btn {
    width: 100%;
    justify-content: center;
  }

  .contact__note {
    text-align: center;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__badges {
    flex-direction: column;
    align-items: center;
  }

  .cta-float__btn {
    padding: 16px 24px;
    font-size: 15px;
    text-align: center;
  }

  .about__text h2,
  .facilities__list h2,
  .gallery__header h2 {
    font-size: 26px;
  }
}

/* ==========================================================================
   App Download page (public/apps.html)
   ========================================================================== */
.app-download {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 20px;
  background: linear-gradient(160deg, var(--color-pale-blue) 0%, var(--color-off-white) 100%);
}

.app-download__card {
  width: 100%;
  max-width: 420px;
  background: var(--color-white);
  border-radius: 8px;
  border-top: 5px solid var(--color-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  padding: 48px 36px;
  text-align: center;
  animation: app-card-in 0.5s var(--ease) both;
}

@keyframes app-card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-download__logo {
  height: 56px;
  width: auto;
  margin: 0 auto 28px;
}

.app-download__title {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.app-download__subtitle {
  font-size: 15px;
  color: var(--color-body);
  line-height: 1.7;
  margin-bottom: 32px;
}

.app-download__badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.app-download__badges img {
  width: 200px;
  transition: transform 0.2s var(--ease);
}

.app-download__badges a:hover img {
  transform: translateY(-2px);
}

.app-download__footer {
  font-size: 13px;
  color: var(--color-body);
  text-align: center;
}

.field--honeypot {
  display: none;
}

.cf-turnstile {
  display: flex;
  margin-top: 20px;
  justify-content: flex-end;
}