/* Twin Horizon — Elevated Hero
   Image source: https://twinhorizon.hcbs.co.in/ */

/* —— Hero shell —— */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  color: #ffffff;
  background-color: #0c0c0e;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__parallax {
  position: absolute;
  inset: -6% 0;
}

.hero__parallax picture,
.hero__image {
  width: 100%;
  height: 100%;
}

.hero__image {
  display: block;
  object-fit: cover;
  object-position: 50% 42%;
  max-width: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.42) 42%,
    rgba(0, 0, 0, 0.28) 68%,
    rgba(0, 0, 0, 0.48) 100%
  );
}

.hero__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    transparent 55%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.72fr);
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
  align-items: center;
  width: min(100% - (var(--container-pad-x) * 2), var(--container-max));
  padding-block: calc(clamp(4.75rem, 9vw, 6.25rem) + 1.75rem) 2.5rem;
}

.hero__content {
  max-width: min(44rem, 100%);
  min-width: 0;
}

/* Shared frosted glass */
.hero__badge,
.hero__metrics li,
.hero__btn-primary,
.hero__btn-outline,
.hero__card-surface,
.hero__submit {
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

/* —— Location badge: single line —— */
.hero__badge {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  max-width: 100%;
  margin: 0 0 1.15rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  font-family: var(--font-ui);
  font-size: clamp(0.6rem, 0.55rem + 0.22vw, 0.6875rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    background 0.35s ease;
}

.hero__badge:hover {
  border-color: rgba(219, 191, 150, 0.8);
  color: #fff8ec;
  background: rgba(12, 10, 8, 0.62);
}

.hero__badge-sep {
  color: var(--accent-champagne-bright);
  flex: 0 0 auto;
}

/* —— Heading: SangBleu Sunrise, minimal normal line-height —— */
.hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-family: var(--font-hero);
  font-size: clamp(2.35rem, 1.35rem + 3.2vw, 4.35rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 14px 40px rgba(0, 0, 0, 0.55);
}

.hero__title-line,
.hero__title-accent {
  display: block;
  white-space: nowrap;
  font-style: normal;
  font-weight: 400;
  line-height: 1.05;
}

.hero__title-line {
  letter-spacing: 0.08em;
}

.hero__title-accent {
  margin-top: 0;
  color: var(--accent-champagne-bright);
  letter-spacing: 0.12em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 12px 32px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  margin: 1.15rem 0 0;
  max-width: 34rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  font-weight: 500;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* —— Metric pills —— */
.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__metrics li {
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(8, 8, 10, 0.48);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    background 0.35s ease;
}

.hero__metrics li:hover {
  border-color: rgba(219, 191, 150, 0.8);
  color: #fff8ec;
  background: rgba(12, 10, 8, 0.62);
}

/* —— Glass CTAs —— */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.hero__btn-primary,
.hero__btn-outline {
  letter-spacing: 0.12em;
  min-height: 3rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.hero__btn-primary {
  --btn-bg: rgba(197, 168, 128, 0.72);
  --btn-fg: #18181b;
  --btn-border: rgba(219, 191, 150, 0.9);
}

.hero__btn-primary:hover,
.hero__btn-primary:focus-visible {
  --btn-bg: rgba(219, 191, 150, 0.92);
  --btn-border: #dbbf96;
  --btn-fg: #18181b;
}

.hero__btn-outline {
  --btn-bg: rgba(8, 8, 10, 0.4);
  --btn-fg: #ffffff;
  --btn-border: rgba(255, 255, 255, 0.55);
}

.hero__btn-outline:hover,
.hero__btn-outline:focus-visible {
  --btn-bg: rgba(8, 8, 10, 0.55);
  --btn-border: var(--accent-champagne-bright);
  --btn-fg: #ffffff;
  color: #ffffff;
}

/* —— Frosted glass lead form —— */
.hero__card {
  justify-self: end;
  width: min(100%, 23.5rem);
}

.hero__card-surface {
  padding: clamp(1.35rem, 2.2vw, 1.85rem);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  background: rgba(8, 8, 10, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.hero__card-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-champagne-bright);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero__card-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero__form {
  gap: 0.95rem;
}

.hero__form .form__label {
  color: #ffffff;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.hero__form .form__input {
  min-height: 3rem;
  height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.hero__form .form__input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero__form .form__input:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.22);
}

.hero__form .form__input:focus {
  outline: none;
  border-color: var(--accent-champagne-bright);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.4);
}

.hero__consent {
  align-items: flex-start;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hero__consent input {
  accent-color: var(--accent-champagne);
  margin-top: 0.15rem;
}

.hero__submit {
  --btn-bg: #c5a880;
  --btn-fg: #18181b;
  --btn-border: #c5a880;
  min-height: 3.05rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero__submit:hover,
.hero__submit:focus-visible {
  --btn-bg: #dbbf96;
  --btn-border: #dbbf96;
  --btn-fg: #18181b;
}

.hero__privacy {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

/* —— Tablet —— */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 1.75rem;
  }

  .hero__content {
    max-width: 40rem;
  }

  .hero__title {
    font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
  }

  .hero__card {
    justify-self: stretch;
    width: min(100%, 28rem);
  }

  .hero__image {
    object-position: 50% 38%;
  }
}

/* —— Mobile —— */
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    align-items: stretch;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding-block: calc(4.5rem + 1.35rem) 5.75rem;
  }

  .hero__badge {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    padding: 0.45rem 0.75rem;
  }

  .hero__title {
    font-size: clamp(1.85rem, 7.2vw, 2.55rem);
    letter-spacing: 0.05em;
  }

  .hero__title-line {
    letter-spacing: 0.06em;
  }

  .hero__title-accent {
    letter-spacing: 0.1em;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__card {
    width: 100%;
    justify-self: stretch;
  }

  .hero__card-surface {
    padding: 1.5rem;
  }

  .hero__form .form__input {
    height: 48px;
    min-height: 48px;
  }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.4) 45%,
      rgba(0, 0, 0, 0.68) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero__metrics {
    flex-direction: column;
  }

  .hero__metrics li {
    width: 100%;
    text-align: center;
  }
}
