.hero {
  padding: 20px 0;
  background-color: var(--bg-color, #ffffff);
}

.hero-content {
  padding: 0 20px;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h2 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--accent-color, #006666);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--heading-color, #000000);
  text-align: left;
  text-transform: uppercase;
}

.hero-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  align-self: stretch;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.hero-image--dojo {
  align-items: center;
}

.hero-image--dojo img {
  height: auto;
  max-height: 480px;
  object-fit: contain;
}

.hero-image--tplite {
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 10px 0;
}

.hero-image--tplite img {
  width: 100%;
  max-width: 500px;
  height: auto !important;
  max-height: 380px;
  object-fit: contain !important;
}

.fibre-hero-image {
  align-items: center;
}

.fibre-hero-image img {
  height: auto;
  max-height: 420px;
}

.connectivity-split-image {
  align-items: center;
  display: flex;
}

.connectivity-split-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 20px;
}

.connectivity-split-image--wide img {
  max-height: 420px;
}

.integrated-payments-page .connectivity-split-image--wide img {
  max-height: 580px;
  object-fit: contain;
}

.integrated-payments-page .dojo-wired-image {
  max-width: 100%;
  max-height: 440px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.integrated-payments-page .dojo-pocket-image {
  max-width: 100%;
  max-height: 440px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}

.utilities-split-image {
  display: flex;
  align-items: center;
}

.utilities-split-image img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  flex-wrap: wrap;
}

/* Make primary CTA wider in hero only */
.hero .button.primary {
  padding: 16px 40px;
  min-width: 260px;
}

@media (max-width: 1024px) {
  .hero-text h1 { font-size: 2.5rem; }
  .hero-text p { font-size: 1.05rem; }
}

@media (max-width: 768px) {
  .hero {
    padding: 12px 0;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .hero-text {
    min-width: 0;
  }

  .hero-text h2 {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-text p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero .button.primary {
    width: 100%;
    max-width: 320px;
  }

  .hero-image {
    order: -1;
    justify-content: center;
    min-width: 0;
    align-self: center;
  }

  .hero-image img {
    max-width: 520px;
    max-height: 360px;
    height: auto;
    object-fit: contain;
  }
}

.integrated-payments-page .hero-image img {
  max-width: 620px;
  max-height: 440px;
  height: auto;
  object-fit: contain;
}
