/*
 * how-it-works.css — Section 3-A: How It Works page
 * Photo in organic bubble (left), process copy + CTAs (right)
 */

.hiw-section {
  padding: 48px 0 100px;
  background: var(--color-off-white);
}

.hiw-inner {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin-inline: auto;
}

.hiw-visual {
  display: flex;
  justify-content: flex-start;
}

.hiw-photo-wrap {
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.hiw-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 47% 53% 52% 48% / 48% 47% 53% 52%;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 28px 64px rgba(38, 138, 178, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.08);
  border: 5px solid #fff;
  outline: 1px solid rgba(38, 138, 178, 0.12);
}

.hiw-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  transform: scale(1.45);
  transform-origin: 50% 32%;
}

.hiw-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0 0 28px;
}

.hiw-list {
  margin: 0 0 28px;
  padding: 0 0 0 1.25rem;
  list-style: disc;
}

.hiw-list li {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-primary);
  margin-bottom: 14px;
}

.hiw-list li:last-child {
  margin-bottom: 0;
}

.hiw-subhead {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin: 0 0 20px;
}

.hiw-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 36px;
}

.hiw-tour-link {
  display: inline;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: #268ab2;
  text-decoration: underline;
  text-decoration-color: rgba(38, 138, 178, 0.4);
  text-underline-offset: 3px;
  line-height: 1.5;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

.hiw-tour-link:hover {
  color: #1f7394;
  text-decoration-color: #268ab2;
}

@media (max-width: 900px) {
  .hiw-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hiw-visual {
    justify-content: center;
  }

  .hiw-photo-wrap {
    margin-inline: auto;
    width: min(100%, 280px);
  }
}

@media (max-width: 768px) {
  .hiw-section {
    padding: 32px 0 72px;
  }

  .hiw-list li {
    font-size: 17px;
  }

  .hiw-photo {
    object-position: 50% 30%;
    transform: scale(1.5);
    transform-origin: 50% 30%;
  }
}
