/* ==========================================================================
   Dfly Inc — Homepage hero (index.html only)
   Reproduces the approved hero reference (1663 × 752 desktop capture).
   Every value below was measured from the reference pixels:
     background #232640 = --color-navy-700, accent #eb651f = --color-primary,
     dark text #232640, card 509 × 584 at 72px from the top, radius 20,
     padding 30/32/32, fields 45px (select 46, textarea 87), 16px column gap,
     14px row gap, button 49px radius 8, content block 1190px centred.
   Type is the site's Lexend; sizes are fitted to the reference cap heights
   and line widths using Lexend's own metrics.
   Scoped to .dhero — nothing here touches any other section or page.
   ========================================================================== */

.dhero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background-color: var(--color-navy-700);
  color: var(--color-white);
}

/* --- Decoration ------------------------------------------------------------ */

/* Orange dot grid, upper left: 2px dots on a 16px pitch, 13 × 14, 35% alpha.
   Its right edge stays 26px left of the text column, as in the reference. */
.dhero-dots {
  position: absolute;
  top: 66px;
  left: calc((100% - 1190px) / 2 - 234px);
  width: 208px;
  height: 224px;
  background-image: radial-gradient(circle at 1px 1px, rgba(235, 101, 31, 0.35) 1px, transparent 1.4px);
  background-size: 16px 16px;
  pointer-events: none;
}

/* Two orange curves running from behind the form card into the phone and
   email buttons. Anchored to the right edge, drawn 1:1 in reference pixels. */
.dhero-curves {
  position: absolute;
  top: 0;
  right: 0;
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.5;
  opacity: 0.4;
  pointer-events: none;
}

/* --- Layout -------------------------------------------------------------- */

.dhero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 509px;
  column-gap: 48px;
  align-items: center;
  width: min(1190px, 100% - 184px);
  margin-inline: auto;
}

/* --- Left column ----------------------------------------------------------- */

.dhero-eyebrow {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 20px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.dhero-title {
  margin: 0;
  font-size: clamp(46px, 3.86vw, 54px);
  line-height: 1.11;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-white);
}

/* Reference line breaks: "Digital Marketing That / Drives Real Business / Growth". */
.dhero-line {
  display: block;
}

.dhero-accent {
  color: var(--color-primary);
}

.dhero-lead {
  max-width: 520px;
  margin: 28px 0 0;
  font-size: 1.0875rem;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.72);
}

/* --- Form card ----------------------------------------------------------- */

.dhero-card {
  padding: 30px 32px 32px;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.06);
  color: var(--color-navy-700);
}

.dhero-card-title {
  max-width: 330px;
  margin: 0 auto 22px;
  font-size: 22px;
  line-height: 27px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--color-navy-700);
}

.dhero-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 14px;
}

.dhero .form-group {
  display: block;
  margin: 0;
}

.dhero-field-full,
.dhero-submit {
  grid-column: 1 / -1;
}

.dhero-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--color-navy-700);
}

.dhero-req {
  color: var(--color-primary);
}

.dhero-input {
  display: block;
  width: 100%;
  height: 45px;
  padding: 0 18px;
  font-size: 15px;
  color: var(--color-neutral-900);
  background-color: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.dhero-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-tint);
}

.dhero-select {
  height: 46px;
  padding-left: 19px;
}

.dhero-textarea {
  height: 87px;
  min-height: 87px;
  padding: 14px 15px;
  font-size: 14px;
  line-height: 20px;
  resize: vertical;
}

.dhero-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 49px;
  margin-top: 6px;
  font-size: 17px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 8px;
  box-shadow: var(--shadow-primary);
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.dhero-submit:hover {
  background-color: var(--color-primary-dark);
}

.dhero-submit:focus-visible {
  outline: 2px solid var(--color-navy-700);
  outline-offset: 3px;
}

.dhero-submit-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

/* --- Floating contact buttons ---------------------------------------------- */
/* 56px navy discs (they mask the curves), white 16px line icons, stacked on a
   56px pitch, centred 45.5px from the right edge. */
.dhero-contact {
  position: absolute;
  z-index: 2;
  top: 254.5px;
  right: 17.5px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dhero-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--color-white);
  background-color: var(--color-navy-700);
  border-radius: 50%;
  transition: color var(--duration-fast) var(--ease-standard);
}

.dhero-contact-link:hover {
  color: var(--color-primary-light);
}

.dhero-contact-link:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: -6px;
}

.dhero-contact-link svg {
  width: 16px;
  height: 16px;
}

/* --- Responsive ------------------------------------------------------------ */

/* 1200–1399: same composition, card narrows so the heading keeps its breaks
   and the contact buttons keep clear of the card. */
@media (max-width: 1399px) {
  .dhero-inner {
    grid-template-columns: minmax(0, 1fr) 440px;
  }

  .dhero-dots {
    left: -142px;
  }
}

/* Below 1200 (site's mobile-nav band): the curves and dot grid are dropped and
   the contact buttons join the flow as a centred row under the hero. */
@media (max-width: 1199px) {
  .dhero {
    padding: 64px 0 56px;
  }

  .dhero-dots,
  .dhero-curves {
    display: none;
  }

  .dhero-inner {
    grid-template-columns: minmax(0, 1fr) 400px;
    column-gap: 36px;
    width: min(960px, 100% - 24px);
  }

  .dhero-title {
    font-size: clamp(36px, 3.86vw, 46px);
  }

  .dhero-card {
    padding: 28px 24px 28px;
  }

  .dhero-contact {
    position: static;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
  }

  .dhero-contact-link {
    width: 48px;
    height: 48px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.24);
  }

  .dhero-contact-link:hover {
    border-color: var(--color-primary-light);
  }

  .dhero-contact-link:focus-visible {
    outline-offset: 2px;
  }
}

/* Below 992: stacked — eyebrow, heading, paragraph, then the form. */
@media (max-width: 991px) {
  .dhero {
    padding: 56px 0 48px;
  }

  .dhero-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
    width: min(720px, 100% - 24px);
  }

  .dhero-title {
    font-size: 40px;
    line-height: 1.15;
  }

  .dhero-card {
    max-width: 560px;
  }
}

@media (max-width: 767px) {
  .dhero-inner {
    width: min(540px, 100% - 24px);
  }
}

/* Phones: full-width card, single-column fields. */
@media (max-width: 575px) {
  .dhero {
    padding: 44px 0 40px;
  }

  .dhero-inner {
    width: calc(100% - 24px);
    row-gap: 28px;
  }

  .dhero-eyebrow {
    font-size: 12px;
  }

  .dhero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .dhero-lead {
    margin-top: 18px;
    font-size: 16px;
    line-height: 27px;
  }

  .dhero-card {
    max-width: none;
    padding: 24px 20px;
  }

  .dhero-card-title {
    font-size: 20px;
    line-height: 26px;
    margin-bottom: 18px;
  }

  .dhero-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .dhero-contact {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhero-input,
  .dhero-submit,
  .dhero-contact-link {
    transition: none;
  }
}
