/* ==========================================================
   SafarBandhu — Homepage
   File: assets/css/pages/home.css

   Shared buttons, cards and typography use the common CSS.
   ========================================================== */


/* 1. Hero */

.home-hero {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 40rem;
  overflow: hidden;

  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.home-hero__image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 57%;
}

.home-hero__shade {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgb(9 39 41 / 86%) 0%,
    rgb(9 39 41 / 60%) 48%,
    rgb(9 39 41 / 10%) 100%
  );

  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;

  padding-block: var(--space-20);
}

.home-hero__eyebrow {
  max-width: 42rem;
  color: #ffe4bf;
  font-size: 0.6875rem;
  line-height: 1.8;
}

.home-hero__title {
  max-width: 50rem;
  margin-block: var(--space-6);

  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.home-hero__title em {
  color: #ffd09c;
  font-weight: 400;
}

.home-hero__description {
  max-width: 30rem;

  color: #e0eae6;
  font-size: var(--text-base);
  line-height: 1.9;
}

.home-hero__actions {
  margin-top: var(--space-8);
}

.home-hero__secondary {
  background: transparent;
  border-color: rgb(255 255 255 / 65%);
  color: var(--color-text-inverse);
}

.home-hero__secondary:hover {
  background: rgb(255 255 255 / 12%);
}

.home-hero__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);

  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;

  color: #e5eee7;
  font-size: var(--text-xs);
}

.home-hero__highlights li::before {
  content: "✓";
  margin-right: var(--space-2);
  color: #ffc899;
  font-weight: 700;
}

.home-hero__location {
  position: absolute;
  right: var(--page-gutter);
  bottom: var(--space-6);
  z-index: 1;

  text-align: right;
  text-shadow: 0 2px 8px rgb(0 0 0 / 35%);
}

.home-hero__location span {
  display: block;
  font-size: var(--text-xs);
}

.home-hero__location strong {
  display: block;
  margin-top: var(--space-1);

  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

.home-hero :focus-visible,
.home-cta :focus-visible {
  outline-color: #ffd09c;
}


/* 2. Travel benefits */

.home-benefits {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.home-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  margin: 0;
  padding: var(--space-6) 0;
  list-style: none;
}

.home-benefits__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);

  min-width: 0;
  padding-inline: var(--space-5);
  border-right: 1px solid var(--color-border);
}

.home-benefits__item:first-child {
  padding-left: 0;
}

.home-benefits__item:last-child {
  padding-right: 0;
  border-right: 0;
}

.home-benefits__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;

  background: var(--color-accent-light);
  color: var(--color-accent-text);
  border-radius: var(--radius-pill);

  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
}

.home-benefits__item strong {
  display: block;
  font-size: var(--text-sm);
}

.home-benefits__item p {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}


/* 3. Destination section */

.home-destinations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.home-destinations .destination-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-destinations .destination-card__media {
  display: block;
}

.home-destinations .card__image {
  transition: transform var(--transition-base);
}

.home-destinations .destination-card:hover .card__image {
  transform: scale(1.04);
}

.home-destinations .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-destinations .card__title {
  margin-bottom: 0;

  font-family: var(--font-heading);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.2;
}

.home-destinations .card__title a:hover {
  color: var(--color-accent-text);
}

.home-destinations .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-5);

  font-size: var(--text-sm);
  font-weight: 700;
}

.home-destinations__note {
  max-width: 55rem;
  margin: var(--space-6) auto 0;

  color: var(--color-text-muted);
  font-size: var(--text-xs);
  text-align: center;
}


/* 4. Services section */

.home-services {
  background: var(--color-primary-light);
}

.home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}

.home-services .service-card {
  height: 100%;
  background: var(--color-surface);

  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.home-services .service-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}

.home-services .card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-services .badge {
  align-self: flex-start;
}

.home-services .card__title {
  margin-bottom: 0;
  font-size: 1.0625rem;
}

.home-services .card__title a:hover {
  color: var(--color-accent-text);
}

.home-services .card__description {
  line-height: 1.9;
}

.home-services .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--space-5);

  font-size: var(--text-sm);
  font-weight: 700;
}


/* 5. About section */

.home-about__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-16);
}

.home-about__visual {
  position: relative;
  min-width: 0;
  padding: 0 var(--space-8) var(--space-8) 0;
}

.home-about__visual::before {
  content: "";
  position: absolute;
  inset: var(--space-8) 0 0 var(--space-8);

  background: #e7d7bf;
  border-radius: var(--radius-md);
}

.home-about__image {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 27rem;

  object-fit: cover;
  border-radius: var(--radius-md);
}

.home-about__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;

  max-width: calc(100% - 1rem);
  padding: var(--space-5) var(--space-6);

  background: var(--color-primary-dark);
  color: var(--color-text-inverse);

  border: 5px solid var(--color-background);
  border-radius: var(--radius-md);
}

.home-about__badge strong {
  display: block;

  color: #ffc996;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
}

.home-about__badge span {
  display: block;
  margin-top: var(--space-2);

  font-size: 0.625rem;
  letter-spacing: 0.04em;
}

.home-about__content {
  min-width: 0;
}

.home-about__description {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.9;
}

.home-about__values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);

  padding: 0;
  list-style: none;

  font-size: var(--text-sm);
}

.home-about__values li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.home-about__values li::before {
  content: "✓";
  color: var(--color-accent-text);
  font-weight: 700;
}


/* 6. Enquiry section */

.home-cta {
  position: relative;
  overflow: hidden;

  padding-block: var(--space-16);

  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.home-cta::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -14rem;

  width: 24rem;
  height: 24rem;

  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;

  pointer-events: none;
}

.home-cta__inner {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-10);
}

.home-cta .eyebrow {
  color: #f5bd89;
}

.home-cta h2 {
  margin-block: var(--space-4);
}

.home-cta__content > p:last-child {
  max-width: 34rem;
  color: #c6d7d1;
  font-size: var(--text-sm);
}

.home-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.home-cta__phone {
  color: #e0ece6;
  font-size: var(--text-sm);
}

.home-cta__phone:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}


/* 7. Tablet layout */

@media (max-width: 64rem) {
  .home-benefits__item {
    padding-inline: var(--space-4);
    gap: var(--space-3);
  }

  .home-destinations__grid {
    gap: var(--space-4);
  }

  .home-destinations .card__body {
    padding: var(--space-5);
  }

  .home-destinations .card__title {
    font-size: 1.625rem;
  }

  .home-about__grid {
    gap: var(--space-8);
  }

  .home-about__image {
    height: 25rem;
  }
}

@media (max-width: 60rem) {
  .home-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-cta__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-6);
  }

  .home-cta__actions {
    align-items: flex-start;
  }
}


/* 8. Mobile layout */

@media (max-width: 48rem) {
  .home-hero {
    min-height: 38rem;
  }

  .home-hero__content {
    padding-top: var(--space-12);
    padding-bottom: 6rem;
  }

  .home-hero__shade {
    background: linear-gradient(
      90deg,
      rgb(9 39 41 / 87%),
      rgb(9 39 41 / 42%)
    );
  }

  .home-hero__title {
    font-size: clamp(3rem, 8vw, 4rem);
  }

  .home-hero__description {
    max-width: 25rem;
    font-size: var(--text-sm);
  }

  .home-hero__highlights {
    margin-top: var(--space-8);
    gap: var(--space-3);
  }

  .home-hero__location {
    bottom: var(--space-4);
  }

  .home-hero__location strong {
    font-size: 1.25rem;
  }

  .home-benefits__grid {
    grid-template-columns: minmax(0, 1fr);
    padding-block: var(--space-2);
  }

  .home-benefits__item,
  .home-benefits__item:first-child,
  .home-benefits__item:last-child {
    padding: var(--space-4) 0;
    border-right: 0;
  }

  .home-benefits__item + .home-benefits__item {
    border-top: 1px solid var(--color-border);
  }

  .home-destinations__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }

  .home-destinations .card__title {
    font-size: 1.875rem;
  }

  .home-about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .home-about__image {
    height: 23rem;
  }
}

@media (max-width: 36rem) {
  .home-services__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-about__values {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-about__visual {
    padding-right: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .home-about__image {
    height: 21rem;
  }

  .home-about__badge {
    padding: var(--space-4) var(--space-5);
  }

  .home-about__badge strong {
    font-size: 1.75rem;
  }

  .home-cta {
    padding-block: var(--space-12);
  }
}


/* 9. Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .home-destinations .destination-card:hover .card__image {
    transform: none;
  }
}