/* WordPress-specific additions. The source stylesheet remains unchanged. */

.internal-hero {
  width: 100%;
  padding: 72px 0 68px;
  background:
    radial-gradient(circle at 78% 14%, rgba(216, 184, 118, .20), transparent 16rem),
    linear-gradient(150deg, #101820 0%, #182532 50%, #263a3d 100%);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}

.internal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .10;
  background:
    linear-gradient(90deg, transparent 0 11%, #fff 11.2% 11.4%, transparent 11.6% 100%),
    linear-gradient(transparent 0 14%, #fff 14.2% 14.35%, transparent 14.55% 100%);
  background-size: 86px 86px;
  pointer-events: none;
}

.internal-hero .wrap {
  position: relative;
  z-index: 1;
}

.internal-hero h1 {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--paper);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .94;
  letter-spacing: -.055em;
}

.wp-page-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

.wp-content-card {
  padding: 48px;
  border-radius: var(--radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.wp-content {
  color: rgba(22, 32, 42, .78);
  font-size: 18px;
  line-height: 1.7;
}

.wp-content > *:first-child {
  margin-top: 0;
}

.wp-content > *:last-child {
  margin-bottom: 0;
}

.wp-content a {
  color: #6d5529;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-content img {
  max-width: 100%;
  height: auto;
}

.wp-post-grid .news-card {
  color: inherit;
}

.wp-post-card h3 a {
  color: inherit;
}

.wp-pagination {
  margin-top: 34px;
}

.wp-pagination .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 32, 42, .07);
  font-weight: 750;
}

.wp-pagination .page-numbers.current {
  color: var(--paper);
  background: var(--dark);
}

@media (max-width: 720px) {
  .internal-hero {
    padding: 34px 0 44px;
  }

  .internal-hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .wp-page-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .wp-content-card {
    padding: 36px;
    border-radius: 24px;
  }
}

/* Inner pages: the source header remains unchanged, while the inner hero background extends beneath it. */
.sve-inner .internal-hero {
  margin-top: -92px;
  padding-top: 164px;
}

@media (max-width: 720px) {
  .sve-inner .internal-hero {
    margin-top: -74px;
    padding-top: 108px;
  }
}

/* Blog/news cards are fully clickable. */
.news-card.wp-post-card {
  color: inherit;
  text-decoration: none;
}


/* Dynamic WordPress news images keep the proportions of the uploaded featured image. */
.news-card.wp-post-card .news-card__image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}


/* Featured image on a single news post: container width, above the white content card. */
.wp-single-featured-section {
  padding: 72px 0 0;
}

.wp-single-featured {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.wp-single-featured img {
  display: block;
  width: 100%;
  height: auto;
}

.wp-single-featured-section + .wp-page-section {
  padding-top: 22px;
}

@media (max-width: 720px) {
  .wp-single-featured-section {
    padding-top: 52px;
  }

  .wp-single-featured-section + .wp-page-section {
    padding-top: 18px;
  }
}

/* Contact office: optional descriptions + three stacked phones/emails. */
.contact-office .contact-detail {
  display: block;
  min-width: 0;
}
.contact-office .contact-detail__description {
  display: inline;
  margin-right: 6px;
  color: rgba(22, 32, 42, .72);
  font-weight: 600;
  line-height: 1.45;
}
.contact-office .contact-detail a {
  overflow-wrap: anywhere;
}
.contacts.contacts--single {
  grid-template-columns: minmax(0, 1fr);
}
