/* ==========================================================================
   Skydime Holdings — Homepage
   Utility bar, sticky header offset, four-slide hero, intro, explore-skydime
   cards, why-skydime, CTA. Builds on tokens/primitives defined in styles.css.
   ========================================================================== */

body.homepage {
  background: var(--bg);
}

/* ---- Fixed chrome stacking (utility bar + header) ------------------------- */

body.homepage .utility-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
}

body.homepage .header {
  top: var(--utility-h-mobile);
}

body.homepage .hero-slider {
  margin-top: calc(var(--utility-h-mobile) + var(--header-h-mobile));
}

@media (min-width: 768px) {
  body.homepage .header {
    top: var(--utility-h);
  }

  body.homepage .hero-slider {
    margin-top: calc(var(--utility-h) + var(--header-h));
  }
}

/* .menu-toggle__bars is a sitewide header primitive — it now lives in the
   shared assets/css/styles.css, not duplicated here. */

/* ---- Hero slider ------------------------------------------------------------ */

.hero-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--brand-blue-deep);
}

@media (min-width: 768px) {
  .hero-slider {
    height: 415px;
  }
}

@media (min-width: 1024px) {
  .hero-slider {
    height: 430px;
  }
}

@media (min-width: 1180px) {
  .hero-slider {
    height: 450px;
  }
}

@media (min-width: 1440px) {
  .hero-slider {
    height: 480px;
  }
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s var(--ease);
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slide__media,
.slide__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide__media img {
  object-fit: cover;
}

.slide--properties img {
  object-position: center 35%;
}

.slide--insurance img {
  object-position: center 42%;
}

.slide--safaris img {
  object-position: center 60%;
}

.slide--capital img {
  object-position: center 30%;
}

.slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 51, 0.67) 0%,
    rgba(15, 23, 51, 0.42) 27%,
    rgba(15, 23, 51, 0.12) 47%,
    rgba(15, 23, 51, 0) 62%
  );
}

.hero-slider .container {
  width: min(1280px, calc(100% - 44px));
}
 
@media (min-width: 768px) {
  .hero-slider .container {
    width: min(1280px, calc(100% - 80px));
  }
}
 
@media (min-width: 1024px) {
  .hero-slider .container {
    width: min(1280px, calc(100% - 116px));
  }
}
 
@media (min-width: 1180px) {
  .hero-slider .container {
    width: min(1280px, calc(100% - 136px));
  }
}
 
@media (min-width: 1440px) {
  .hero-slider .container {
    width: 1280px;
  }
}
 
.slide > .container {
  height: 100%;
  display: flex;
  align-items: center;
}
 
.slide__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  max-width: 34rem;
}

.slide__headline {
  margin-top: 14px;
  font-size: clamp(1.875rem, 1.7rem + 0.85vw, 2.125rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

@media (min-width: 768px) {
  .slide__headline {
    font-size: clamp(2.25rem, 2.05rem + 1vw, 2.5rem);
  }
}

@media (min-width: 1024px) {
  .slide__headline {
    font-size: clamp(2.625rem, 2.4rem + 1vw, 2.875rem);
  }
}

@media (min-width: 1180px) {
  .slide__headline {
    font-size: clamp(2.75rem, 2.5rem + 1vw, 3rem);
  }
}

@media (min-width: 1440px) {
  .slide__headline {
    font-size: clamp(3.125rem, 2.85rem + 1vw, 3.375rem);
  }
}

.slide__text {
  margin-top: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 38ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
}
 
@media (min-width: 768px) {
  .slide__text {
    font-size: 1.0625rem;
  }
}
 
.slide__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
 
.slide__label::before {
  content: "";
  width: 2rem;
  height: 2px;
  flex: 0 0 2rem;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 0 12px rgba(0, 168, 89, 0.3);
}
 
@media (min-width: 390px) {
  .slide__label {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .slide__label {
    margin-bottom: 1rem;
    font-size: 15px;
  }

  .slide__label::before {
    width: 2.5rem;
    flex-basis: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .slide__label {
    font-size: 16px;
  }
}

@media (min-width: 1180px) {
  .slide__label {
    font-size: 17px;
  }
}

@media (min-width: 1440px) {
  .slide__label {
    font-size: 18px;
  }
}
 
.slide__headline {
  margin-top: 0;
}
 
.slide__cta {
  margin-top: 22px;
  width: fit-content;
  min-height: 45px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 600;
}

/* Homepage-only refined button system: navy fill, white text, green arrow accent.
   Scoped to body.homepage so inner pages keep their original .btn-primary green. */
body.homepage .btn-primary {
  background: var(--brand-blue);
  color: var(--white);
}

body.homepage .btn-primary:hover {
  background: #101f4d;
}

body.homepage .btn-primary .btn-arrow {
  color: var(--brand-green);
  transition: transform 0.2s var(--ease);
}

body.homepage .btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---- Slider controls -------------------------------------------------------- */

.hero-slider__controls {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(150px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-slider__controls {
    transform: translateY(148px);
  }
}

@media (min-width: 1024px) {
  .hero-slider__controls {
    transform: translateY(155px);
  }
}

@media (min-width: 1180px) {
  .hero-slider__controls {
    transform: translateY(157px);
  }
}

@media (min-width: 1440px) {
  .hero-slider__controls {
    transform: translateY(165px);
  }
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: width 0.25s var(--ease), background-color 0.25s var(--ease);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.dot.is-active {
  width: 26px;
  background: var(--brand-green);
}

.hero-slider__arrows {
  display: none;
}

@media (min-width: 768px) {
  .hero-slider__arrows {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-slider__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(15, 23, 51, 0.25);
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  }

  .hero-slider__arrow:hover {
    background: rgba(15, 23, 51, 0.45);
    border-color: rgba(255, 255, 255, 0.6);
  }
}

/* ---- Section head (label + heading), reused across homepage sections ------ */

.home-section-head {
  max-width: 640px;
  margin-bottom: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
}

.home-section-head h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.6875rem, 1.5rem + 0.8vw, 1.9375rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--brand-blue);
}

@media (min-width: 768px) {
  .home-section-head h2 {
    font-size: clamp(2rem, 1.7rem + 1vw, 2.25rem);
  }
}

@media (min-width: 1024px) {
  .home-section-head h2 {
    font-size: clamp(2.375rem, 2rem + 1vw, 2.625rem);
  }
}

.home-section-head p {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: var(--lh-loose);
  max-width: 58ch;
}

/* ---- Intro ------------------------------------------------------------------ */

.intro-home {
  padding: clamp(2rem, 1.45rem + 1.15vw, 2.75rem) 0 clamp(2.5rem, 2rem + 1.5vw, 3.25rem);
}

.intro-home .container {
  width: min(1300px, calc(100% - 44px));
}

@media (min-width: 768px) {
  .intro-home .container {
    width: min(1300px, calc(100% - 80px));
  }
}

@media (min-width: 1024px) {
  .intro-home .container {
    width: min(1300px, calc(100% - 116px));
  }
}

@media (min-width: 1180px) {
  .intro-home .container {
    width: min(1300px, calc(100% - 136px));
  }
}

@media (min-width: 1440px) {
  .intro-home .container {
    width: 1300px;
  }
}

.intro-home__inner {
  margin: 0 auto;
}

.intro-home__card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.5rem, 1.25rem + 1.25vw, 2.5rem) clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
  border: 1px solid rgba(30, 49, 107, 0.12);
  border-radius: 14px;
  background: var(--white);
}

@media (min-width: 768px) {
  .intro-home__card {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: clamp(1.5rem, 2.2vw, 2.25rem);
    padding: clamp(2rem, 2.5vw, 2.75rem) clamp(2rem, 3vw, 3.25rem);
  }
}

@media (min-width: 1024px) {
  .intro-home__card {
    grid-template-columns: 38% 62%;
  }
}

@media (min-width: 1280px) {
  .intro-home__card {
    grid-template-columns: 40% 60%;
  }
}

.intro-home__brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-home__logo {
  display: block;
  width: min(100%, 180px);
  height: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .intro-home__logo {
    width: min(100%, 220px);
  }
}

@media (min-width: 1024px) {
  .intro-home__logo {
    width: min(100%, 250px);
  }
}

@media (min-width: 1280px) {
  .intro-home__logo {
    width: min(100%, 280px);
  }
}

.intro-home__copy {
  display: flex;
  align-items: center;
}

.intro-home__statement {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.875rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--brand-blue);
}

@media (min-width: 768px) {
  .intro-home__statement {
    font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
    max-width: 40rem;
  }
}

@media (min-width: 1024px) {
  .intro-home__statement {
    font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  }
}

@media (min-width: 1280px) {
  .intro-home__statement {
    font-size: clamp(1.625rem, 1.35rem + 0.8vw, 1.875rem);
  }
}

/* ---- Explore Skydime cards --------------------------------------------------- */

.explore {
  padding: 0 0 clamp(2.5rem, 2rem + 2vw, 3.75rem);
}

.explore .home-section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.explore .container {
  width: min(1300px, calc(100% - 2.5rem));
}

.entity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 620px) {
  .entity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .entity-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.entity-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.entity-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 49, 107, 0.24);
  box-shadow: var(--shadow-sm);
}

.entity-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.entity-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.entity-card:hover .entity-card__media img {
  transform: scale(1.03);
}

.entity-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entity-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-green);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.entity-card__title {
  margin-top: 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brand-blue);
}

/* Official entity logo — replaces the (now sr-only) text title visually.
   Row height is normalized across all four cards so labels/descriptions
   stay aligned card-to-card; each logo scales by height within that row
   (object-fit: contain, never stretched) so a square mark and a wide
   wordmark both read at a comparable visual weight without forcing
   identical pixel dimensions. */
.entity-card__logo {
  display: flex;
  align-items: center;
  height: 34px;
  margin-top: 0.5rem;
}

.entity-card__logo img {
  height: 100%;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

@media (min-width: 620px) {
  .entity-card__logo {
    height: 40px;
  }

  .entity-card__logo img {
    max-width: 160px;
  }
}

.entity-card__desc {
  margin-top: 0.4rem;
  color: var(--text-muted);
  line-height: var(--lh-normal);
  font-size: 0.92rem;
}

.entity-card__services {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.entity-card__cta {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-blue);
  font-weight: 700;
  font-size: 0.9rem;
  width: fit-content;
}

.entity-card__cta svg {
  transition: transform 0.2s var(--ease);
}

.entity-card:hover .entity-card__cta {
  color: var(--brand-green);
}

.entity-card:hover .entity-card__cta svg {
  transform: translateX(3px);
}

/* ---- Why Skydime -------------------------------------------------------------- */

.why {
  padding: clamp(2.25rem, 1.85rem + 1.6vw, 3.25rem) 0;
  background: var(--surface-muted);
}

.why .home-section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.85rem);
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border-soft);
}

.why-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why-item h3 {
  color: var(--brand-blue);
  font-size: 1.05rem;
  font-weight: 800;
}

.why-item p {
  margin-top: 0.35rem;
  color: var(--text-muted);
  line-height: var(--lh-normal);
  font-size: 0.94rem;
}

@media (min-width: 700px) {
  .why-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .why-item {
    border-bottom: none;
    padding-bottom: 0;
  }
}

@media (min-width: 1180px) {
  .why-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .why-item {
    flex-direction: column;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-soft);
    border-bottom: none;
  }

  .why-item:first-child {
    padding-left: 0;
    border-left: none;
  }
}

/* ---- Contact CTA ------------------------------------------------------------ */

.cta-home {
  padding: 0 0 clamp(2.5rem, 2rem + 2vw, 4rem);
}

.cta-home__panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 12% 15%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  color: var(--white);
  border-radius: 18px;
  border-top: 3px solid var(--brand-green);
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.cta-home__panel h2 {
  font-size: clamp(1.75rem, 1.5rem + 1vw, 2rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

@media (min-width: 1024px) {
  .cta-home__panel h2 {
    font-size: clamp(2.25rem, 2rem + 0.8vw, 2.5rem);
  }
}

.cta-home__panel p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--lh-loose);
  max-width: 48ch;
}

.cta-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}

@media (min-width: 860px) {
  .cta-home__panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---- Back to top (same recipe as About/Properties/Insurance/Tours/Capital) - */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 82px;
  z-index: 89;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background-color 0.2s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--brand-blue);
  color: var(--white);
}

@media (min-width: 768px) {
  .back-to-top {
    right: 26px;
    bottom: 96px;
    width: 44px;
    height: 44px;
  }
}
