/* web/themes/custom/biztheme/css/branding-hero.css */

#header.front-page-header,
#header.page-node-listings {
  background-image: none !important;
  background-repeat: no-repeat;
  min-height: 0;
  background: #e8ebde;
}

#header .header-inner {
  padding: 0;
}

#block-biztheme-branding,
section#block-biztheme-sitebranding {
  display: block;
  width: 100%;
}

#block-biztheme-branding.w3-block-wrapper,
section#block-biztheme-sitebranding.w3-block-wrapper {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.site-branding-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 350px;
  background:
    linear-gradient(180deg, #2a6d7d 0%, #2f7e8c 24%, #4aa5a7 53%, #f2d39c 76%, #fff5e3 100%);
  border-bottom: 1px solid rgba(255, 250, 243, 0.35);
}

.site-branding-hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-branding-hero__sun,
.site-branding-hero__glow {
  position: absolute;
  border-radius: 50%;
}

.site-branding-hero__sun {
  top: 34px;
  left: 11%;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(255, 243, 210, 0.72);
  box-shadow: 0 0 0 10px rgba(255, 235, 191, 0.08);
  animation: brandingSunDrift 8s ease-in-out infinite alternate;
}

.site-branding-hero__glow {
  right: 12%;
  top: 22px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 212, 139, 0.3) 0%, rgba(255, 212, 139, 0.08) 42%, transparent 70%);
  animation: brandingGlowPulse 9s ease-in-out infinite;
}

.site-branding-hero__waves,
.site-branding-hero__skyline {
  position: absolute;
  left: 0;
  width: 100%;
  fill: none;
}

.site-branding-hero__waves {
  bottom: 0;
  height: 210px;
  stroke: rgba(255, 247, 231, 0.34);
  stroke-width: 1.2;
}

.site-branding-hero__wave-path--near {
  animation: brandingWaveShift 14s linear infinite;
}

.site-branding-hero__wave-path--far {
  animation: brandingWaveShift 20s linear infinite reverse;
}

.site-branding-hero__skyline {
  bottom: 26px;
  height: 214px;
  stroke: rgba(246, 233, 209, 0.7);
  stroke-width: 1.35;
}

.site-branding-hero__skyline-path {
  stroke-dasharray: 2300;
  stroke-dashoffset: 2300;
}

.site-branding-hero.is-ready .site-branding-hero__skyline-path {
  animation: brandingSkylineDraw 4.8s ease-out forwards;
}

.site-branding-hero__palms {
  position: absolute;
  bottom: 34px;
  width: 190px;
  height: 132px;
  opacity: 0.38;
}

.site-branding-hero__palms::before,
.site-branding-hero__palms::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: 82px;
  background: rgba(249, 238, 220, 0.65);
  transform-origin: bottom center;
}

.site-branding-hero__palms::after {
  height: 68px;
  left: 34%;
}

.site-branding-hero__palms--left {
  left: 1.5%;
}

.site-branding-hero__palms--left::before {
  transform: translateX(-50%) rotate(16deg);
}

.site-branding-hero__palms--left::after {
  transform: translateX(-50%) rotate(10deg);
}

.site-branding-hero__palms--right {
  right: 1.5%;
}

.site-branding-hero__palms--right::before {
  transform: translateX(-50%) rotate(-16deg);
}

.site-branding-hero__palms--right::after {
  transform: translateX(-50%) rotate(-10deg);
}

.site-branding-hero__icons {
  position: absolute;
  inset: 0;
}

.site-branding-hero__icon {
  position: absolute;
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: rgba(255, 248, 236, 0.6);
  opacity: 0;
  transform: translateY(8px) scale(0.86);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.site-branding-hero__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-branding-hero__icon.is-visible {
  opacity: 0.52;
  transform: translateY(0) scale(1);
}

.site-branding-hero__icon.is-animated {
  animation: brandingIconFloat var(--branding-duration, 10s) ease-in-out infinite;
  animation-delay: var(--branding-delay, 0s);
}

.site-branding-hero__icon--restaurant { top: 28px; left: 28%; }
.site-branding-hero__icon--hotel { top: 42px; right: 24%; }
.site-branding-hero__icon--doctor { top: 90px; left: 12%; }
.site-branding-hero__icon--motorbike { top: 84px; right: 11%; }
.site-branding-hero__icon--bar { bottom: 92px; left: 24%; }
.site-branding-hero__icon--map { bottom: 96px; right: 28%; }
.site-branding-hero__icon--beer { bottom: 44px; right: 19%; }
.site-branding-hero__icon--beach { bottom: 46px; left: 17%; }

.site-branding-hero__content {
  position: relative;
  z-index: 3;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1rem 1.85rem;
  text-align: center;
}

.site-branding-hero__logo {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.94);
  box-shadow: 0 20px 34px rgba(22, 41, 50, 0.16);
  padding: 0.7rem;
  flex-shrink: 0;
}

.site-branding-hero__logo img {
  max-width: 100%;
  max-height: 100%;
}

.site-branding-hero__text {
  max-width: 760px;
}

.site-branding-hero__title.site-name,
h1.site-branding-hero__title,
p.site-branding-hero__title {
  margin: 0;
  color: #fff7eb;
  text-shadow: 0 2px 12px rgba(21, 38, 49, 0.22);
  font-size: clamp(2.35rem, 5.1vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: 0.05em;
}

.site-branding-hero__title .site-name-link {
  color: inherit;
}

.site-branding-hero__kicker {
  margin: 0 0 0.5rem;
  color: rgba(255, 247, 236, 0.84);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.site-branding-hero__slogan.site-slogan,
#header .site-branding-hero__slogan {
  margin: 0.5rem 0 0;
  color: #fff8ef;
  font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes brandingSkylineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes brandingWaveShift {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-1.2%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes brandingSunDrift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(6px);
  }
}

@keyframes brandingGlowPulse {
  0%, 100% {
    opacity: 0.74;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes brandingIconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.04);
  }
}

@media (max-width: 860px) {
  .site-branding-hero {
    min-height: 280px;
  }

  .site-branding-hero__content {
    min-height: 280px;
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-branding-hero__logo {
    width: 64px;
    height: 64px;
  }

  .site-branding-hero__slogan.site-slogan {
    letter-spacing: 0.07em;
  }
}

@media (max-width: 640px) {
  .site-branding-hero {
    min-height: 220px;
  }

  .site-branding-hero__content {
    min-height: 220px;
    padding: 1.3rem 0.9rem 1.25rem;
  }

  .site-branding-hero__kicker {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  .site-branding-hero__icon {
    width: 26px;
    height: 26px;
  }

  .site-branding-hero__icon--restaurant { top: 18px; left: 24%; }
  .site-branding-hero__icon--hotel { top: 24px; right: 18%; }
  .site-branding-hero__icon--doctor { top: 72px; left: 10%; }
  .site-branding-hero__icon--motorbike { top: 80px; right: 8%; }
  .site-branding-hero__icon--bar { bottom: 74px; left: 22%; }
  .site-branding-hero__icon--map { bottom: 72px; right: 24%; }
  .site-branding-hero__icon--beer { bottom: 30px; right: 14%; }
  .site-branding-hero__icon--beach { bottom: 26px; left: 12%; }
}
