/*-----------------------------------*\
  Site chrome: ticker + header + homepage hero + booking form
  Shared alignment: 1400px container, 32px gutters
\*-----------------------------------*/

:root {
  --site-max: 1400px;
  --site-gutter: 32px;
  --ticker-h: 48px;
  --header-h: 96px;
  --chrome-h: calc(var(--ticker-h) + var(--header-h));
}

.header .container.header-inner,
.header .container,
.hero-body > .container,
.booking-form-wrapper > .container {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: var(--site-gutter);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  :root {
    --ticker-h: 44px;
    --header-h: 72px;
    --site-gutter: 16px;
  }
}

/* ---------- Ticker ---------- */

#top-offer-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  background: #05668d;
  color: #fff;
  z-index: 10000;
  font-weight: 600;
  font-size: 1.8rem;
  box-sizing: border-box;
}

#scroll-container {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  font-size: inherit;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 28px), transparent);
}

#scroll-content {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  will-change: transform;
  animation: none;
}

#scroll-content .offer {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding-right: 48px;
  margin: 0;
}

@media (max-width: 575px) {
  #scroll-content .offer {
    font-size: 1.6rem;
  }
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  width: 100%;
  height: var(--header-h);
  margin-top: 0;
  padding-block: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(5, 102, 141, 0.08);
}

.header .container.header-inner,
.header .header-inner,
.header .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  height: var(--header-h);
  flex-wrap: nowrap;
}

.header .logo-wrapper {
  grid-column: 1;
}

.header .header-contact {
  grid-column: 2;
  justify-self: end;
}

.header .nav-open-btn {
  grid-column: 3;
  justify-self: end;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header .logo img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.navbar-title {
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #05668d;
}

.header-contact {
  display: none;
  align-items: center;
  gap: 12px;
  text-align: right;
  line-height: 1.25;
  margin-inline-start: 0;
}

.header .contact-label {
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  margin: 0;
}

.header .contact-number {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.header .contact-icon {
  font-size: 22px;
  opacity: 0.75;
}

.header .contact-icon ion-icon {
  display: block;
}

.nav-open-btn {
  color: #05668d;
  font-size: 28px;
  justify-self: end;
}

@media (min-width: 768px) {
  .header-contact {
    display: flex;
  }
}

@media (min-width: 1200px) {
  .header .container.header-inner,
  .header .container {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .header .navbar,
  .header .navbar.active {
    all: revert;
    position: static;
    visibility: visible;
    transform: none;
    width: auto;
    max-width: none;
    height: auto;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    grid-column: 2;
    justify-self: center;
  }

  .header .header-contact {
    grid-column: 3;
    justify-self: end;
  }

  .navbar-list {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px 6px;
  }

  .navbar-link {
    padding: 8px 10px;
    font-size: 1.5rem;
  }
}

@media (max-width: 767px) {
  .header .logo img {
    width: 52px;
    height: 52px;
  }

  .navbar-title {
    font-size: 1.8rem;
  }
}

/* ---------- Homepage hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  padding: var(--chrome-h) 0 96px;
  overflow: visible;
  background: #fff;
}

.hero.section,
.hero {
  padding-block-start: var(--chrome-h);
  padding-block-end: 96px;
}

.hero::before {
  display: none;
}

.hero-stage {
  position: relative;
  isolation: isolate;
  height: 640px;
  max-height: 680px;
  overflow: hidden;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 22, 38, 0.48) 0%,
    rgba(12, 22, 38, 0.24) 34%,
    rgba(12, 22, 38, 0.06) 50%,
    transparent 64%
  );
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 52%;
  z-index: 0;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  height: 100%;
  padding: 36px 0 0;
}

.hero-intro {
  width: min(100%, 650px);
  max-width: 650px;
  min-width: 0;
  color: #fff;
  text-align: left;
}

.hero-kicker {
  font-family: var(--ff-rubik);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-title,
.hero-intro .hero-title {
  font-family: var(--ff-oswald);
  font-size: clamp(3.8rem, 4vw, 5.8rem);
  line-height: 1.08;
  font-weight: 600;
  max-width: 650px;
  margin: 0 0 10px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  font-family: var(--ff-rubik);
  font-size: 1.8rem;
  line-height: 1.45;
  max-width: 60rem;
  width: 100%;
  margin: 0 0 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--ff-rubik);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.hero-cta-call {
  background: #05668d;
}

.hero-cta-wa {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.hero-phones a,
.hero-phones span {
  display: inline;
  color: inherit;
  text-decoration: none;
}

.hero-phones a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

/* ---------- Booking form: attached overlap ---------- */

.booking-form-wrapper {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 4;
  width: min(calc(100% - 48px), var(--site-max));
  transform: translate(-50%, 50%);
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.booking-form-wrapper > .container {
  width: min(100%, var(--site-max));
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: 0;
  display: flex;
  justify-content: center;
}

.hero-search-wrapper {
  display: contents;
}

.hero-search-card {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: 16px 18px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
  justify-self: center;
  overflow: visible;
}

.hero-search-card .field-group input,
.hero-search-card .field-group select {
  height: 42px;
}

.hero-search-card .search-btn {
  grid-column: auto;
  height: 42px;
  align-self: end;
}

@media (max-width: 1199px) {
  .hero-intro {
    max-width: min(560px, 100%);
  }

  .hero-search-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-search-card .search-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 0;
    padding-bottom: 24px;
  }

  .hero-stage {
    height: 420px;
    max-height: none;
  }

  .hero-bg {
    object-position: 78% 42%;
  }

  .hero-stage::before {
    background:
      linear-gradient(
        180deg,
        rgba(12, 22, 38, 0.38) 0%,
        rgba(12, 22, 38, 0.22) 55%,
        rgba(12, 22, 38, 0.16) 100%
      ),
      linear-gradient(
        90deg,
        rgba(12, 22, 38, 0.28) 0%,
        transparent 70%
      );
  }

  .hero-body {
    align-items: flex-start;
    padding: 20px 0 0;
  }

  .hero-intro,
  .hero-intro .hero-title,
  .hero-lead,
  .hero-kicker {
    max-width: 100%;
  }

  .hero-intro .hero-title {
    font-size: clamp(2.8rem, 7vw, 3.6rem);
  }

  .hero-lead {
    font-size: 1.5rem;
  }

  .hero-search-card {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }

  .booking-form-wrapper {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: calc(100% - 32px);
    margin: -36px auto 0;
    padding: 0;
  }
}

@media (max-width: 429px) {
  .hero-cta-btn {
    flex: 1 1 auto;
  }

  .hero-search-card {
    grid-template-columns: 1fr;
  }

  .hero-search-card .search-btn {
    grid-column: 1;
  }
}
