/* Site-wide fixes, loaded after all theme CSS. */

/* ---- moved from the inline <style> that used to live in layout.tsx ---- */
.subCategories-menu {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
}
.subCategories-menu .swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  transform: none !important;
  width: auto !important;
}
.subCategories-menu .swiper-slide {
  width: auto !important;
  min-width: 150px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 768px) {
  .pagination li a,
  .pagination li span {
    padding: 8px 14px !important;
    font-size: 16px !important;
  }
}
.text-con h5 {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

/* ---- accessibility ---- */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10000;
  padding: 10px 16px;
  background: #20798b;
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #20798b !important;
  outline-offset: 2px;
}

/* Inactive menu items were #d0c7a8 on white (1.8:1). Darkened gold keeps the
   palette and reaches WCAG AA (≈5:1). */
header .container ul li a {
  color: #7a6a3b;
}
header .container ul li a:hover,
header .container ul li.active a {
  color: #20798b;
}

/* Page titles are now <h1> (were <h4>); keep the exact same look. */
.page-headers .container-fluid .row h1 {
  font-family: Trajan;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 600;
  word-spacing: 5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #333;
  margin: 0 auto;
  padding-bottom: 20px;
  border-bottom: 1px solid #20798b;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
@media (max-width: 768px) {
  .page-headers .container-fluid .row h1 {
    font-weight: 900;
  }
}

/* ---- home hero ---- */
.kk-hero {
  position: relative;
  /* fill the viewport below the 175px header so the headline + CTA are above the fold */
  height: clamp(460px, calc(100vh - 175px), 820px);
  height: clamp(460px, calc(100svh - 175px), 820px);
  overflow: hidden;
  background: #0d2a33;
  color: #fff;
}
.kk-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.kk-hero__slide:first-child {
  opacity: 1;
}
.kk-hero__slide img {
  object-fit: cover;
}
.kk-hero__slide.is-animating {
  will-change: transform, opacity;
}
.kk-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 20, 26, 0.15) 0%, rgba(5, 20, 26, 0.25) 45%, rgba(5, 20, 26, 0.72) 100%);
  pointer-events: none;
  z-index: 3;
}
.kk-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(56px, 9vh, 96px);
  padding: 0 16px;
  text-align: center;
  z-index: 4;
}
.kk-hero__eyebrow {
  font-family: Trajan, serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
  color: #e9e1c6;
  margin: 0 0 12px;
}
.kk-hero__title {
  font-family: Trajan, serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.2;
  font-size: clamp(22px, 3.6vw, 44px);
  margin: 0 auto 14px;
  max-width: 960px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.kk-hero__lead {
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0.2px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto 26px;
  color: #f3efe2;
}
.kk-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.kk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.kk-btn--primary {
  background: #20798b;
  color: #fff !important;
  border: 1px solid #20798b;
}
.kk-btn--primary:hover {
  background: #186575;
  transform: translateY(-1px);
}
.kk-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.kk-btn--outline {
  background: #fff;
  color: #20798b !important;
  border: 1px solid #20798b;
}
.kk-btn--outline:hover {
  background: #eef6f8;
}
.kk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.kk-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.kk-hero__dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kk-hero__dot span {
  display: block;
  width: 18px;
  height: 3px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.3s ease;
}
.kk-hero__dot[aria-current="true"] span {
  background: #fff;
}
.kk-hero__pause {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  z-index: 4;
}

/* ---- lead / booking forms ---- */
.kk-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  text-align: left;
}
.kk-form .kk-field--full {
  grid-column: 1 / -1;
}
.kk-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #3d3d3d;
  margin-bottom: 6px;
}
.kk-form input,
.kk-form select,
.kk-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #b9b09a;
  border-radius: 2px;
  background: #fff;
  font-size: 16px;
  color: #222;
}
.kk-form textarea {
  min-height: 110px;
  resize: vertical;
}
.kk-form__status {
  grid-column: 1 / -1;
  font-size: 15px;
  margin: 0;
}
.kk-form__status--ok {
  color: #1d6b3a;
}
.kk-form__status--err {
  color: #a32020;
}
.kk-form__note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #555;
  margin: 0;
}
@media (max-width: 640px) {
  .kk-form {
    grid-template-columns: 1fr;
  }
}

.kk-contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 18px 0 28px;
}

/* ---- mobile booking bar ---- */
.kk-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  /* logo was offset ~36px right of centre on phones */
  header .pattern-container .header-logo .logo-center {
    left: 0 !important;
    margin-left: auto;
    margin-right: auto;
  }
  .kk-hero {
    height: clamp(440px, calc(100svh - 155px - 52px), 720px);
  }
  .kk-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }
  .kk-hero__lead {
    margin-bottom: 18px;
  }
  .kk-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .kk-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none !important;
  }
  .kk-mobile-cta a:first-child {
    color: #20798b !important;
  }
  .kk-mobile-cta a:last-child {
    background: #20798b;
    color: #fff !important;
  }
  footer {
    padding-bottom: 64px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* CMS lists render on the client; reserve space so the footer doesn't jump
   up into view and back down while they load (CLS). */
.main-content-wrapper {
  min-height: 100vh;
}

/* Header images now carry width/height so the header doesn't grow when they load. */
header img.backpattern,
header #shape-left > img {
  height: auto;
}
header .header-logo img.logo-center {
  height: auto;
}
