/**
 * Homepage — mobile-first hero, intro, magazine posts, testimonials.
 */

main.home-page {
  box-sizing: border-box;
  width: min(720px, calc(100% - 2 * var(--space-4)));
  max-width: 100%;
  margin-inline: auto;
  padding-block: var(--space-5) var(--space-8);
  overflow-x: visible;
}

main.home-page h1.home-hero__title,
main.home-page .home-hero h1 {
  color: #fff !important;
  font-size: clamp(1.2rem, 4.8vw, 1.65rem) !important;
  line-height: 1.45 !important;
  word-break: normal;
  overflow-wrap: normal;
}

.home-page__wrap {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  min-width: 0;
}

/* Hero */
.home-hero {
  position: relative;
  padding: var(--space-5);
  border-radius: calc(var(--radius-lg) + 6px);
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, color-mix(in srgb, var(--color-primary) 18%, transparent), transparent 55%),
    linear-gradient(165deg, #0b1220 0%, #0f172a 52%, #111827 100%);
  color: #fff;
  overflow: hidden;
}

.home-hero__glow {
  position: absolute;
  inset: -20% auto auto -10%;
  width: 70%;
  height: 60%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.home-hero__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.home-hero__brand-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.home-hero__logo {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-hero__logo-fallback {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.home-hero__eyebrow {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}

.home-hero__title {
  margin: 0;
  font-size: clamp(1.2rem, 4.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
}

.home-hero__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.78);
  word-break: normal;
  overflow-wrap: normal;
  text-align: start;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: var(--space-2);
}

.home-hero__action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.2s var(--svc-ease, ease), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.home-hero__action-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}

.home-hero__action-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-hero__action-label {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-hero__action-hint {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0.82;
}

.home-hero__action-arrow {
  flex: 0 0 auto;
  font-size: 1rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.home-hero__action:hover .home-hero__action-arrow,
.home-hero__action:focus-visible .home-hero__action-arrow {
  transform: translateX(-3px);
}

/* Booking tiles */
.home-hero__action--booking {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.home-hero__action--booking .home-hero__action-icon {
  background: linear-gradient(145deg, #056894 0%, var(--color-primary) 55%, #0a9aad 100%);
  color: #fff;
}

.home-hero__action--booking:hover,
.home-hero__action--booking:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  outline: none;
}

/* Scan — visually distinct */
.home-hero__action--scan {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.home-hero__action--scan .home-hero__action-icon {
  background: #eef7fc;
  color: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.home-hero__action--scan .home-hero__action-hint {
  color: #64748b;
  opacity: 1;
}

.home-hero__action--scan:hover,
.home-hero__action--scan:focus-visible {
  background: #fff;
  transform: translateY(-1px);
  outline: none;
}

/* Ghost secondary */
.home-hero__action--ghost {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.92);
}

.home-hero__action--ghost .home-hero__action-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.home-hero__action--ghost:hover,
.home-hero__action--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

/* Intro */
.home-intro__panel {
  position: relative;
  padding: var(--space-5);
  border-radius: 22px;
  background:
    linear-gradient(135deg, #f8fbfe 0%, #ffffff 45%, #f3f8fb 100%);
  border: 1px solid color-mix(in srgb, var(--color-primary) 14%, var(--color-divider));
  box-shadow: 0 16px 40px color-mix(in srgb, #0f172a 5%, transparent);
}

.home-intro__panel::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 120px;
  height: 4px;
  border-radius: 0 22px 0 0;
  background: linear-gradient(90deg, transparent, var(--color-primary));
}

.home-intro__kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #056894;
}

.home-intro__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-heading);
}

.home-intro__body {
  margin: 0 0 var(--space-4);
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--color-text-body);
  text-align: start;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  letter-spacing: normal;
}

/* Services */
.home-services {
  min-width: 0;
}

.home-services__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
}

.home-services__ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(220px, 70%);
}

.home-services__ornament-line {
  flex: 1 1 auto;
  height: 1px;
  background: color-mix(in srgb, var(--color-primary) 35%, var(--color-divider));
}

.home-services__ornament-star {
  flex: 0 0 auto;
  font-size: 0.85rem;
  color: var(--color-primary);
  line-height: 1;
}

.home-services__title {
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.home-services__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}

.home-services__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.home-services__link:hover,
.home-services__link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.home-services__icon-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 140px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--color-primary) 22%, transparent);
  display: block;
}

.home-services__icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-services__label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  color: var(--color-text-heading);
}

.home-services__more {
  margin: var(--space-5) 0 0;
  text-align: center;
}

.home-services__more a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

/* Posts carousel (mobile + desktop) */
.home-page__posts--carousel .category-page__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  margin: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.home-page__posts--carousel .category-page__grid::-webkit-scrollbar {
  display: none;
}

.home-page__posts--carousel .category-page__card {
  flex: 0 0 auto;
  width: min(82vw, 300px);
  min-width: min(82vw, 300px);
  max-width: 300px;
  scroll-snap-align: start;
}

.home-posts-wrap {
  min-width: 0;
  max-width: 100%;
}

.home-intro__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.home-intro__link:hover,
.home-intro__link:focus-visible {
  color: #056894;
  outline: none;
}

/* Features — dark highlight section */
.home-features {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: clamp(3.5rem, 10vw, 4.5rem) var(--space-4);
  border-radius: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--color-primary) 16%, transparent), transparent 60%),
    linear-gradient(165deg, #0b1220 0%, #0f172a 48%, #111827 100%);
  color: #fff;
  overflow: hidden;
}

.home-features__glow {
  position: absolute;
  inset: auto -10% -30% auto;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent 68%);
  pointer-events: none;
}

.home-features__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  width: min(720px, calc(100% - 2 * var(--space-4)));
  max-width: 100%;
  margin-inline: auto;
}

.home-features__head {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
}

.home-features__kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}

.home-features__title {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}

.home-features__lead {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.68);
}

.home-features__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.home-features__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-features__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
}

.home-features__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #7dd3fc;
  background:
    linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(14, 165, 233, 0.08));
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.12);
}

.home-features__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}

.home-features__card-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}

.home-features__points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-features__points li {
  position: relative;
  padding-inline-start: 18px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.home-features__points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
}

/* Posts section spacing */
.home-page__posts {
  margin: 0;
}

.home-page__posts .category-page__posts-head-row {
  align-items: center;
}

.home-page__posts .category-page__posts-title {
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  font-weight: 700;
}

/* Reviews */
.home-reviews {
  min-width: 0;
}

.home-reviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-3);
}

.home-reviews__kicker {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #056894;
}

.home-reviews__title {
  margin: 0;
  font-size: clamp(1.05rem, 3.4vw, 1.22rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-heading);
}

.home-reviews__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.home-reviews__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
}

.home-reviews__stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.home-reviews__rating-label {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.home-reviews__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.home-reviews__track::-webkit-scrollbar {
  display: none;
}

.home-reviews__card {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 300px);
  min-width: min(78vw, 300px);
  max-width: 300px;
  scroll-snap-align: start;
  margin: 0;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-primary) 10%, var(--color-divider));
  box-shadow: 0 14px 36px color-mix(in srgb, #0f172a 7%, transparent);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 210px;
}

.home-reviews__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-reviews__quote {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 12%, #eef6fb);
}

.home-reviews__stars-sm {
  color: #f59e0b;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.home-reviews__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #1e293b;
}

.home-reviews__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-reviews__name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
}

.home-reviews__service {
  font-size: 0.78rem;
  color: #64748b;
}

.home-reviews__source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
}

@media (min-width: 768px) {
  main.home-page {
    width: min(1200px, calc(100% - 2 * var(--space-4)));
    padding-block: 48px var(--space-8);
  }

  .home-page__wrap {
    gap: 4rem;
  }

  .home-hero {
    padding: var(--space-6);
  }

  .home-services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 18px;
  }

  .home-services__icon-wrap {
    max-width: 160px;
  }

  .home-page__posts--carousel .category-page__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    overflow: visible;
    scroll-snap-type: none;
    touch-action: auto;
    padding: 0;
  }

  .home-page__posts--carousel .category-page__card {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
  }

  .home-intro__panel {
    padding: var(--space-6);
  }

  .home-features {
    padding: clamp(5rem, 8vw, 6.5rem) var(--space-4);
  }

  .home-features__inner {
    width: min(1200px, calc(100% - 2 * var(--space-4)));
  }

  .home-features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .home-features__card {
    min-height: 100%;
  }

  .home-reviews__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .home-reviews__card {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .home-page__posts--carousel .category-page__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .home-reviews__track {
    grid-template-columns: repeat(5, 1fr);
  }
}
