/*
 * Giggi Hytten theme layer.
 * Editable visual decisions should move into Divi variables/presets as the design system matures.
 */

:root {
  --gh-color-primary: #1f2623;
  --gh-color-deep-green: #223f35;
  --gh-color-secondary: #2f4a3f;
  --gh-color-background: #f7f3ec;
  --gh-color-surface: #fffaf2;
  --gh-color-accent: #b88a4a;
  --gh-color-accent-hover: #9f753c;
  --gh-color-light-green: #cfe3d5;
  --gh-color-text: #171717;
  --gh-color-muted: #625d55;
  --gh-radius-small: 8px;
  --gh-radius-pill: 999px;
  --gh-shadow-floating: 0 18px 45px rgba(26, 26, 26, 0.24);
  --gk-divi-content-width: min(90%, calc(100% - 36px));
  --gk-divi-content-max-width: 1180px;
}

body {
  color: var(--gh-color-text);
  background: var(--gh-color-background);
  overflow-x: hidden;
}

#page-container {
  max-width: 100%;
  overflow-x: hidden;
}

#main-header {
  border-bottom: 1px solid rgba(35, 65, 55, 0.12);
  box-shadow: 0 8px 26px rgba(26, 26, 26, 0.06);
}

#logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

#top-menu a {
  color: var(--gh-color-primary);
  font-weight: 700;
}

#top-menu li.current-menu-item > a,
#top-menu a:hover {
  color: var(--gh-color-accent);
}

.mobile_menu_bar::before {
  color: var(--gh-color-primary);
}

.et_mobile_menu {
  border-top-color: var(--gh-color-accent);
}

.gh-floating-booking-cta {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 99999;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 0.7rem;
  min-height: 54px;
  max-width: calc(100vw - 32px);
  padding: 0.62rem 1.1rem 0.62rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--gh-radius-pill);
  background: var(--gh-color-accent);
  color: #ffffff;
  box-shadow: var(--gh-shadow-floating);
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.gh-floating-booking-cta:hover,
.gh-floating-booking-cta:focus-visible {
  background: var(--gh-color-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(26, 26, 26, 0.3);
}

.gh-floating-booking-cta:focus-visible {
  outline: 3px solid var(--gh-color-light-green);
  outline-offset: 3px;
}

.gh-floating-booking-cta__icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.gh-floating-booking-cta__icon svg {
  width: 20px;
  height: 20px;
}

.gh-floating-booking-cta__text {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.gh-floating-booking-cta__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.82;
  text-transform: uppercase;
}

.gh-floating-booking-cta__label {
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  white-space: nowrap;
}

.gh-global-footer.et_pb_section {
  padding: 0;
  background: var(--gh-color-primary);
  color: var(--gh-color-light-green);
}

.gh-global-footer :is(h4, h5) {
  color: #ffffff;
}

.gh-global-footer a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.22em;
}

.gh-global-footer a:hover,
.gh-global-footer a:focus-visible {
  color: var(--gh-color-light-green);
}

.et-l--footer .gh-global-footer__main.et_pb_row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(210px, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(48px, 7vw, 78px) 0;
}

.et-l--footer .gh-global-footer__main > .et_pb_column,
.et-l--footer .gh-global-footer__bottom > .et_pb_column {
  width: auto;
  margin: 0;
}

.gh-global-footer .et_pb_text_inner p {
  margin: 0;
  padding: 0;
}

.gh-global-footer__brand h4,
.gh-global-footer__heading h5,
.gh-global-footer__contact h5 {
  margin-bottom: 0.75rem;
  padding: 0;
}

.gh-global-footer__brand h4 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.gh-global-footer__brand h4 a {
  text-decoration: none;
}

#page-container .et-l--footer .gh-global-footer__menu.et_pb_menu {
  background: transparent !important;
}

.gh-global-footer__menu .et_pb_menu_inner_container {
  display: block;
}

.gh-global-footer__menu .et_pb_menu__wrap {
  justify-content: flex-start;
}

#page-container .et-l--footer .gh-global-footer__menu .sub-menu,
#page-container .et-l--footer .gh-global-footer__menu .menu-item-has-children > a::after {
  display: none !important;
}

#page-container .et-l--footer .gh-global-footer__bottom.et_pb_row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0 5.75rem !important;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.gh-global-footer__legal--right {
  text-align: right;
}

@media (max-width: 980px) {
  #logo {
    max-height: 42px;
  }

  .et-l--footer .gh-global-footer__main.et_pb_row {
    grid-template-columns: 1fr 1fr;
  }

  .gh-global-footer__brand {
    grid-column: 1 / -1;
  }

  #page-container .et-l--footer .gh-global-footer__menu.et_pb_menu .et_pb_menu__menu {
    display: flow-root !important;
  }

  #page-container .et-l--footer .gh-global-footer__menu.et_pb_menu .et-menu-nav {
    float: none !important;
  }

  #page-container .et-l--footer .gh-global-footer__menu.et_pb_menu .et_mobile_nav_menu {
    display: none !important;
  }
}

@media (max-width: 640px) {
  body:not(.et-fb) {
    padding-bottom: 76px;
  }

  .gh-floating-booking-cta {
    left: 14px !important;
    right: auto !important;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
    min-height: 50px;
    gap: 0.52rem;
    width: fit-content !important;
    max-width: calc(100vw - 28px) !important;
    padding: 0.58rem 0.9rem 0.58rem 0.68rem;
  }

  .gh-floating-booking-cta__icon {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }

  .gh-floating-booking-cta__eyebrow {
    display: none;
  }

  .gh-floating-booking-cta__text {
    max-width: none;
  }

  .gh-floating-booking-cta__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.94rem;
    white-space: nowrap;
    line-height: 1.05;
  }

  .gh-floating-booking-cta__label::after {
    content: none;
  }

  .et-l--footer .gh-global-footer__main.et_pb_row,
  #page-container .et-l--footer .gh-global-footer__bottom.et_pb_row {
    grid-template-columns: 1fr;
  }

  #page-container .et-l--footer .gh-global-footer__bottom.et_pb_row {
    padding-bottom: 6.5rem !important;
  }

  .gh-global-footer__brand {
    grid-column: auto;
  }

  .gh-global-footer__legal--right {
    text-align: left;
  }
}
