:root {
  --lakes-color-primary: #0b4f7a;
  --lakes-color-highlight: #48b9df;
  --lakes-color-text: #17324d;
  --lakes-color-background: #f7fbfe;
  --lakes-color-on-highlight: var(--lakes-color-text);
  --lakes-color-muted: #5d7285;
  --lakes-color-surface: #fff;
  --lakes-color-soft: #e5f2f8;
  --lakes-color-eyebrow: #176485;
  --lakes-color-eyebrow-strong: #17324d;
  --lakes-color-alternate: #285c7a;
  --lakes-color-on-primary: #fff;
  --lakes-color-on-surface: #000;
  --lakes-color-on-alternate: #fff;
  --lakes-color-feature: #102d45;
  --lakes-color-highlight-hover: #84d5ee;
  --lakes-color-decoration: rgba(72, 185, 223, 0.5);
  --lakes-color-highlight-glow: rgba(72, 185, 223, 0.26);
  --lakes-color-header-overlay: rgba(11, 45, 69, 0.1);
  --lakes-color-header-sticky: rgba(11, 45, 69, 0.88);
  --lakes-color-header-drawer: rgba(11, 45, 69, 0.97);
  --lakes-color-header-background: var(--lakes-color-text);
  --lakes-color-header-foreground: #fff;
  --lakes-radius-large: 1.5rem;
  --lakes-shadow-large: 0 24px 70px rgba(18, 25, 20, 0.14);
}

/* Shared layouts. th-* aliases preserve existing saved Gutenberg content. */
:is(.lakes-native-hero, .th-native-hero) {
  min-height: clamp(820px, 88vh, 980px);
}

:is(.lakes-native-hero, .th-native-hero) .lakes-hero__eyebrow {
  color: var(--lakes-color-highlight);
}

:is(.lakes-native-hero, .th-native-hero) .lakes-hero__intro {
  color: #fff;
}

:is(.lakes-native-hero, .th-native-hero) .lakes-hero__footer {
  color: #deded9;
}

:is(.lakes-native-hero, .th-native-hero) .lakes-hero__title {
  color: #fff;
}

body {
  background: var(--lakes-color-background);
  color: var(--lakes-color-text);
}

:is(.lakes-section, .th-section).alignfull,
.lakes-hero.alignfull {
  margin-block: 0;
}

.home .entry-header {
  display: none;
}

:is(.lakes-shell, .th-shell) {
  width: min(1500px, 100% - 40px);
  max-width: none !important;
  margin-inline: auto !important;
}

:is(.lakes-section, .th-section) {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

:is(.lakes-section, .th-section) :where(h1, h2, h3, h4, h5, h6),
:is(.lakes-hero, .th-hero) :where(h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
}

:is(.lakes-dark, .th-dark) {
  color: #fff;
  background: var(--lakes-color-text);
}

:is(.lakes-moss, .th-moss) {
  color: var(--lakes-color-on-primary);
  background: var(--lakes-color-primary);
}

:is(.lakes-soft, .th-soft) {
  background: var(--lakes-color-soft);
  color: var(--lakes-color-on-surface);
}

:is(.lakes-alternate, .th-alternate) {
  background: var(--lakes-color-alternate);
  color: var(--lakes-color-on-alternate);
}

:is(.lakes-lime, .th-lime) {
  background: var(--lakes-color-highlight);
  color: var(--lakes-color-on-highlight);
}

:is(.lakes-eyebrow, .th-eyebrow) {
  margin: 0 0 1rem;
  color: var(--lakes-color-highlight);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

:is(.lakes-eyebrow--green, .th-eyebrow--green) {
  color: var(--lakes-color-eyebrow);
}

:is(.lakes-eyebrow--dark, .th-eyebrow--dark) {
  color: var(--lakes-color-eyebrow-strong);
}

:is(.lakes-dark, .th-dark) :where(h1, h2, h3, h4),
:is(.lakes-moss, .th-moss) :where(h1, h2, h3, h4),
:is(.lakes-hero, .th-hero) :where(h1, h2, h3) {
  color: #fff;
}

:is(.lakes-dark, .th-dark) p,
:is(.lakes-moss, .th-moss) p,
:is(.lakes-hero, .th-hero) p {
  color: rgba(255, 255, 255, 0.82);
}

:is(.lakes-dark, .th-dark) :is(.lakes-eyebrow, .th-eyebrow),
:is(.lakes-moss, .th-moss) :is(.lakes-eyebrow, .th-eyebrow),
:is(.lakes-hero, .th-hero) :is(.lakes-eyebrow, .th-eyebrow) {
  color: var(--lakes-color-highlight);
}

:is(.lakes-display, .th-display) {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

:is(.lakes-title, .th-title) {
  max-width: 820px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

:is(.lakes-lede, .th-lede) {
  max-width: 720px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.55;
  opacity: 0.84;
}

:is(.lakes-copy, .th-copy) {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.75;
  opacity: 0.82;
}

:is(.lakes-hero, .th-hero) {
  position: relative;
  min-height: 900px;
  overflow: hidden;
  background: var(--lakes-color-text);
  color: #fff;
}
:is(.lakes-hero, .th-hero)::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 17, 17, 0.96), rgba(19, 17, 17, 0.75) 45%, rgba(19, 17, 17, 0.2) 78%), linear-gradient(0deg, rgba(19, 17, 17, 0.7), transparent 48%);
  pointer-events: none;
}
:is(.lakes-hero, .th-hero) .wp-block-cover__background {
  display: none;
}
:is(.lakes-hero, .th-hero) > .wp-block-cover__inner-container {
  z-index: 2 !important;
}

:is(.lakes-hero__inner, .th-hero__inner) {
  position: relative;
  z-index: 2;
  min-height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 11rem 6.5rem;
}

:is(.lakes-hero__intro, .th-hero__intro) {
  max-width: 650px;
  margin: 1.75rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.55;
}

:is(.lakes-actions, .th-actions) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}
:is(.lakes-actions, .th-actions).wp-block-columns {
  align-items: center;
}
:is(.lakes-actions, .th-actions).wp-block-columns > .wp-block-column {
  flex: 0 0 auto;
}

.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lakes-color-highlight);
  color: var(--lakes-color-on-highlight);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--lakes-color-highlight-hover);
  color: var(--lakes-color-on-highlight);
}

.is-style-outline .wp-block-button__link {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

:is(.lakes-location-grid, .th-location-grid),
:is(.lakes-values, .th-values) {
  width: 100%;
  max-width: none !important;
  gap: 1.25rem;
  margin-top: 3rem;
}

:is(.lakes-card, .th-card) {
  position: relative;
  min-height: 230px;
  height: 100%;
  padding: 2rem;
  border: 1px solid rgba(24, 22, 22, 0.12);
  border-radius: var(--lakes-radius-large);
  background: var(--lakes-color-surface);
  color: var(--lakes-color-on-surface);
  overflow: hidden;
}
:is(.lakes-card, .th-card) h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}
:is(.lakes-card, .th-card) p {
  color: var(--lakes-color-muted);
  line-height: 1.6;
}

:is(.lakes-card--location, .th-card--location) {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--lakes-color-primary);
  color: var(--lakes-color-on-primary);
  border: 0;
}
:is(.lakes-card--location, .th-card--location)::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -70px;
  border: 1px solid var(--lakes-color-decoration);
  border-radius: 45% 55% 68% 32%/52% 40% 60% 48%;
  transform: rotate(18deg);
}
:is(.lakes-card--location, .th-card--location) p {
  color: rgba(255, 255, 255, 0.7);
}
:is(.lakes-card--location, .th-card--location) .wp-block-buttons {
  position: relative;
  z-index: 2;
}

:is(.lakes-card--coming, .th-card--coming) {
  background: var(--lakes-color-alternate);
  color: var(--lakes-color-on-alternate);
}

:is(.lakes-moss, .th-moss) :is(.lakes-card, .th-card) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
}

:is(.lakes-values, .th-values) > .wp-block-column > :is(.lakes-card, .th-card)::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  background: var(--lakes-color-highlight);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}
:is(.lakes-values, .th-values) > .wp-block-column:nth-child(1) > :is(.lakes-card, .th-card)::before {
  -webkit-mask-image: url("../icons/value-quality.svg");
  mask-image: url("../icons/value-quality.svg");
}
:is(.lakes-values, .th-values) > .wp-block-column:nth-child(2) > :is(.lakes-card, .th-card)::before {
  -webkit-mask-image: url("../icons/value-book.svg");
  mask-image: url("../icons/value-book.svg");
}
:is(.lakes-values, .th-values) > .wp-block-column:nth-child(3) > :is(.lakes-card, .th-card)::before {
  -webkit-mask-image: url("../icons/value-roots.svg");
  mask-image: url("../icons/value-roots.svg");
}

:is(.lakes-split, .th-split) {
  align-items: center !important;
  gap: clamp(2rem, 7vw, 7rem);
}

:is(.lakes-media, .th-media) {
  position: relative;
  min-height: 620px;
  margin: 0;
  border-radius: var(--lakes-radius-large);
  overflow: hidden;
  box-shadow: var(--lakes-shadow-large);
}
:is(.lakes-media, .th-media) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:is(.lakes-media, .th-media):has(img[src*="/come-curious"]) {
  min-height: 0;
  aspect-ratio: 1000/685;
}

:is(.lakes-product-band, .th-product-band) {
  background: var(--lakes-color-feature);
}
:is(.lakes-product-band, .th-product-band) :is(.lakes-media, .th-media) {
  min-height: 520px;
  box-shadow: none;
}

:is(.lakes-category-grid, .th-category-grid) {
  width: 100%;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem !important;
}
:is(.lakes-category-grid, .th-category-grid) > :is(.lakes-category, .th-category) {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 100%;
  margin: 0;
}

:is(.lakes-category, .th-category) {
  position: relative;
  isolation: isolate;
  min-height: 240px !important;
  margin: 0;
  padding: 1.35rem;
  border-radius: 1.1rem;
  color: #fff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
:is(.lakes-category, .th-category)::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 14, 14, 0.88), rgba(15, 14, 14, 0.08) 72%);
  pointer-events: none;
}
:is(.lakes-category, .th-category) .wp-block-cover__background {
  display: none;
}
:is(.lakes-category, .th-category) .wp-block-cover__inner-container {
  position: relative;
  z-index: 1;
  align-self: flex-end;
}
:is(.lakes-category, .th-category) h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.15;
  word-break: normal;
}
:is(.lakes-category, .th-category):hover {
  transform: translateY(-4px);
  box-shadow: var(--lakes-shadow-large);
}

:is(.lakes-moss, .th-moss) :is(.lakes-card, .th-card) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.15);
}
:is(.lakes-moss, .th-moss) :is(.lakes-card, .th-card) p {
  color: rgba(255, 255, 255, 0.72);
}

:is(.lakes-stateline, .th-stateline) {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}
:is(.lakes-stateline, .th-stateline) p {
  margin: 0;
}

.home.header-overlay-enabled .site-header {
  position: absolute;
  inset: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--lakes-color-header-overlay);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home.header-overlay-enabled .site-header.is-scrolled {
  position: fixed;
  top: 0;
  background: var(--lakes-color-header-sticky);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: lakes-header-enter 0.3s ease both;
}

.admin-bar.home.header-overlay-enabled .site-header,
.admin-bar.home.header-overlay-enabled .site-header.is-scrolled {
  top: 32px;
}

.site-header {
  background: var(--lakes-color-header-background, var(--lakes-color-text));
  color: var(--lakes-color-header-foreground, #fff);
}

.site-header__inner {
  min-height: 104px;
  padding-block: 1rem;
}

.site-header.is-scrolled .site-header__inner {
  min-height: 78px;
  padding-block: 0.45rem;
}

.site-branding__text {
  display: none;
}

.custom-logo {
  max-height: 82px;
  margin-block: 0.4rem;
  transition: max-height 0.3s ease, margin 0.3s ease;
}

.site-header.is-scrolled .custom-logo {
  max-height: 58px;
  margin-block: 0.15rem;
}

.primary-navigation a {
  color: inherit;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--lakes-color-highlight);
}

.site-header__cta {
  background: var(--lakes-color-highlight);
  color: var(--lakes-color-on-highlight);
}
.site-header__cta:hover {
  background: var(--lakes-color-highlight-hover);
  color: var(--lakes-color-on-highlight);
  box-shadow: 0 10px 30px var(--lakes-color-highlight-glow);
}

.menu-toggle {
  color: inherit;
}

.site-footer {
  margin-top: 0;
}

.site-footer__inner {
  width: 90%;
  max-width: none;
}

@keyframes lakes-header-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .custom-logo {
    transition: none;
  }
}
@media (max-width: 900px) {
  :is(.lakes-category-grid, .th-category-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(.lakes-media, .th-media) {
    min-height: 500px;
  }
}
@media (max-width: 767.98px) {
  .site-header:not(.menu-is-open) .custom-logo {
    max-height: 64px;
    margin-block: 0.2rem;
  }
  .has-navigation-js .primary-navigation {
    background: var(--lakes-color-header-drawer);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .site-header.menu-is-open {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .admin-bar.home .site-header.menu-is-open {
    top: 32px;
  }
}
@media (max-width: 620px) {
  :root {
    --lakes-gutter: 1.5rem;
  }
  :is(.lakes-shell, .th-shell) {
    width: calc(100% - 48px);
  }
  .site-footer__inner {
    width: calc(100% - 48px);
  }
  :is(.lakes-hero, .th-hero),
  :is(.lakes-hero__inner, .th-hero__inner),
  :is(.lakes-native-hero, .th-native-hero) {
    min-height: 760px;
  }
  :is(.lakes-hero, .th-hero)::after {
    background: linear-gradient(0deg, rgba(19, 17, 17, 0.98), rgba(19, 17, 17, 0.62) 70%, rgba(19, 17, 17, 0.2));
  }
  :is(.lakes-hero, .th-hero) .wp-block-cover__image-background {
    object-position: 60% center;
  }
  :is(.lakes-category-grid, .th-category-grid) {
    grid-template-columns: 1fr;
  }
  :is(.lakes-card, .th-card),
  :is(.lakes-card--location, .th-card--location) {
    min-height: 250px;
  }
  :is(.lakes-media, .th-media),
  :is(.lakes-product-band, .th-product-band) :is(.lakes-media, .th-media) {
    min-height: 400px;
  }
  .wp-block-buttons,
  .wp-block-button,
  .wp-block-button__link {
    width: 100%;
  }
  :is(.lakes-hero, .th-hero) :is(.lakes-stateline, .th-stateline) {
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
  }
  :is(.lakes-hero, .th-hero) :is(.lakes-stateline, .th-stateline) > .wp-block-column {
    flex-basis: 100% !important;
  }
}
@media screen and (max-width: 782px) {
  .admin-bar.home .site-header,
  .admin-bar.home .site-header.is-scrolled,
  .admin-bar.home .site-header.menu-is-open {
    top: 46px;
  }
}
@media screen and (max-width: 600px) {
  .admin-bar.home .site-header.is-scrolled,
  .admin-bar.home .site-header.menu-is-open {
    top: 0;
  }
}
@media (max-width: 620px) {
  .wp-block-cover:is(.lakes-native-hero, .th-native-hero) {
    padding-top: 10rem;
    padding-bottom: 5rem;
  }
}
